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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Matlab with physics
  1. Physics+matlab = hard (Replies: 3)

  2. Matlab and physics (Replies: 3)