PDA

View Full Version : Matlab with physics


starbaj12
Oct15-04, 04:34 PM
How would I write a program to show the kinetic energy, potential energy and total mechanical energy at each position in a orbit. I'm not given mass within the program I have to modify

I wanted to just use .5mv^2 = k
-GMm/r = p
and
E = k + p

but can not due to no mass

Tide
Oct15-04, 05:30 PM
You can just set the mass to 1 unit.