Advertisement
Matthen

Exponential

May 19th, 2016
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. {xmin, xmax} = {-4, 3};
  2. frame[t_] := (With[{a = (xmax + xmin)/2 +
  3. 0.5 (xmax - xmin - 2.4) Sin[2 Pi t]},
  4. Show[
  5. Graphics[{
  6. {
  7. Darker@Blue,
  8. Line[{{a, Exp[a]} - 100 {1, Exp[a]}, {a, Exp[a]} +
  9. 100 {1, Exp[a]}}],
  10. Line[{{a, -5}, {a, 8}}],
  11. Line[{{xmin - 1, 0}, {xmax + 1, 0}}],
  12. },
  13. {
  14. Darker@Red,
  15. PointSize[Medium],
  16. Point[{a - 1, 0}],
  17. Point[{a, Exp[a]}]
  18. },
  19. {
  20. FaceForm[Directive[Opacity[0.4], RGBColor[0.2, 0.3, 0.4]]],
  21. EdgeForm[RGBColor[0, 0.2, 0.3]],
  22. Disk[{a, 0}, 1]}
  23. },
  24. PlotRange -> {{xmin - 1, xmax + 1}, {-1, 7}},
  25. ImagePadding -> 10
  26. ],
  27. Plot[Exp[x], {x, xmin - 1, xmax + 1},
  28. PlotStyle -> Directive[Darker@Red, Thick]]
  29. ]
  30. ]);
  31. Manipulate[
  32. frame[t],
  33.  
  34. {t, 0, 1}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement