Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab with physics

  1. Oct 15, 2004 #1
    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
    E = k + p

    but can not due to no mass
  2. jcsd
  3. Oct 15, 2004 #2


    User Avatar
    Science Advisor
    Homework Helper

    You can just set the mass to 1 unit.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook