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

A problem with Mathematica

  1. Sep 14, 2009 #1
    I want to make an animation of a moving point using the command below, but the point doesn't move, how can I make it move using Manipulate? Thank you.

    Manipulate[ Graphics[Point[{t , - t^2/2}] /. {t -> a}], {{a, 1}, 0, 10}]
     
  2. jcsd
  3. Sep 14, 2009 #2

    Dale

    Staff: Mentor

    The point does move. There is just nothing else in the image to let you see the motion. Try

    Manipulate[ Graphics[Point[{t, -t^2/2}] /. {t -> a}, Frame -> True], {{a, 1}, 0, 10}]

    in order to see that the point does actually move.
     
  4. Sep 14, 2009 #3

    Hepth

    User Avatar
    Gold Member

    or, in addition to, add some fixed axis:
    Manipulate[
    Graphics[Point[{t, -t^2/2}] /. {t -> a}, Frame -> True,
    PlotRange -> {{-10, 10}, {-20, 10}}], {{a, 1}, 0, 10}]
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: A problem with Mathematica
  1. Mathematica problem (Replies: 0)

  2. Mathematica problems (Replies: 2)

  3. Mathematica Problem (Replies: 3)

  4. Mathematica problem (Replies: 4)

  5. Mathematica problem (Replies: 2)

Loading...