Advertisement
Matthen

Parabolic Dish

Jun 9th, 2011
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. frame[X_] := Module[{M},
  2. M = ((1 - 4 X^2)/(4 X));
  3. Show[
  4. Plot[x^2, {x, -0.5, 0.5}, PlotRange -> {{-1, 1}, {-0.1, 1}},
  5. Axes -> None, AspectRatio -> 1/2],
  6. Plot[(X - x) M + X^2, {x, -10 Sign[X], X},
  7. PlotStyle -> RGBColor[0.2, 0.6, 0.1]],
  8. Graphics[{
  9. Darker@RGBColor[0.2, 0.6, 0.1], Line[{{X, 1}, {X, X^2}}],
  10. PointSize[Medium], Darker@Red, Point[{0, 0.25}]
  11. }]
  12. ]];
  13. Manipulate[frame[X], {X, -0.4, 0.4}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement