Physics Simulations

Tiny C++ programs used in an undergraduate computational physics class.

Project-related Links


Unfortunately most of the source codes rely on the graphics.h library which is a non-standard and non-portable graphics library, so getting these to run might be a bit difficult if you’re not using a Windows computer.

Chaos in Newton’s Method:

Circular Planetary Orbit:

Perihelion of Mercury:

Heat Equation (Steady State):

Heat Equation (Time Evolving):