1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Solving a projectile problem with mathematica

  1. Mar 12, 2007 #1
    I am trying the solve the following diff. eq. with NDSolve in mathematica:

    [itex] \ddot{x}(t) = - \frac{GMx(t)}{(x(t)^2+y(t)^2)^{\frac{3}{2}}}[/itex]
    and
    [itex] \ddot{y}(t) = - \frac{GMy(t)}{(x(t)^2+y(t)^2)^{\frac{3}{2}}} [/itex]

    where [itex]GM=3.6018*10^{14}[/itex], the initial conditions are:
    [itex] x(0)=0, y(0)=6000000 [/itex]
    and [itex] vx0, vy0 [/itex] can be whatever.

    The trouble is, I keep an error of some sort. I do not have a huge amount of experience with NDSolve so I am most likely doing something simple wrong. The latest thing I have tried is included as an attachment, and resulted in the error:
    NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0.`.

    If someone can point out what I'm doing wrong I would be very gratefull. I also have access to Maple if you know how to solve the problem using that, instead of Mathematica.
    Thanks
     

    Attached Files:

  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Solving a projectile problem with mathematica
  1. Mathematica problems (Replies: 2)

  2. Mathematica Problem (Replies: 3)

  3. Mathematica problem (Replies: 4)

  4. Mathematica problem (Replies: 2)

Loading...