Ideas for a physics based c program?

2 replies · 3K views · last reply
bigfoot100
Messages
4
Reaction score
0
I want to write a physics based c program but can't decide what to do it on any ideas?
 
How about accurately simulating/calculating the orbit of the Earth around the sun based on Newtons inverse square law, the mass of the Earth and sun, and a starting location/speed/direction for both the Earth and the sun. See if you can do a calculation once per hour and come back to about the same place in space (ie. a stable orbit to within one hour of the real one) after 24*365+6 calculations.

Sounds simple, contains a couple of hidden issues and opens up a lot of additional fun things to do.
 
Make an optical table with mirrors, beam splitters etc. guiding a laser beam or pulse.

Or have circle (or spheres if you want 3D) fall into a box. See if you can get them to settle without too many defects.