Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Export["siney.gif",
  2. Table[
  3. Show[Graphics[
  4. Translate[
  5. Rotate[{Circle[], Thick, Blue, Line[{{0, 0}, {0, -1}}], Red,
  6. PointSize[.02], Point[{0, -1}]}, t], { 2 Pi, 0}],
  7. PlotRange -> {{0, 4 Pi}, {-2, 2}}, ImageSize -> {Large, Tiny},
  8. Axes -> {True, False}, AxesOrigin -> {0, -1}],
  9. Graphics[
  10. Plot[Sin[x + t - Sin[t] + 3*Pi/2], {x, -4 Pi, 4 Pi}]
  11. ]
  12. ], {t, 0, 4*Pi - 0.25, 0.25}]
  13. , ImageSize -> 1200]
  14.  
  15. Export["cycloid.gif" ,
  16. Table[Show[
  17. Graphics[
  18. Translate[
  19. Rotate[{Circle[], Thick, Blue, Line[{{0, 0}, {0, -1}}], Red,
  20. PointSize[.02], Point[{0, -1}]}, t], { 2 Pi, 0}],
  21. PlotRange -> {{0, 4 Pi}, {-2, 2}}, ImageSize -> {Large, Tiny},
  22. Axes -> {True, False}, AxesOrigin -> {0, -1}],
  23. Graphics[
  24. ParametricPlot[{-t + x + Cos[x] + Pi/2, Sin[x]}, {x, -4 Pi,
  25. 8 Pi}]
  26. ]
  27. ], {t, 0, 2*Pi - 0.25, 0.25}]
  28. , ImageSize -> 1200]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement