The following is a collection of my math/physics/ML simulations written in the C programming language! Source code and executable files are available to anyone intrested!


I would like to acknowledge my physics teacher, Mr. Penovich for teaching me the theory behind many of these physics simulations. His eagerness to see what I've built and genuine interest was my biggest motivator to keep on building.


Elastic Collision (Conservation of Momentum)




Download Source Code Video w/ Sound

3D Gradient Descent







Download Source Code

Damped Harmonic Motion




Download Source Code

Fourier Series




Download Source Code

Force Table




Download Source Code

3D Gravitational Acceleration




Download Source Code


Machine Learning Simulations:

Reinforcment Trail



w = instruction matrix
|w| = length of each instruction row vector
r = row index, c = column index
L = learning rate







Download Source Code

Conscious Car (Reinforcement Learning Hardware Simulation)



w = instruction vector
|w| = length of instruction vector
L = learning rate






Video Source Code