Animating in Mathematica: Creating a Bouncing Point in a Box Tutorial

  • Context: Mathematica 
  • Thread starter Thread starter rbnphlp
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
rbnphlp
Messages
53
Reaction score
0
Does anyone know how would I go about making a point , bounce up and down in a box in mathematica?
Would greatly apperciate for any help..
Thanks
 
Physics news on Phys.org
Code:
Animate[Graphics[Circle[{0, Sin[x]}, 1], 
  PlotRange -> {{-2, 2}, {-3, 3}}], {x, 0, 10}]
 
kai_sikorski said:
Code:
Animate[Graphics[Circle[{0, Sin[x]}, 1], 
  PlotRange -> {{-2, 2}, {-3, 3}}], {x, 0, 10}]

Cheers dude