PDA

View Full Version : A problem with Mathematica


hitfq
Sep14-09, 09:56 AM
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}]

DaleSpam
Sep14-09, 11:46 AM
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.

Hepth
Sep14-09, 08:30 PM
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}]