Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Cone[a_] :=
  2. ContourPlot3D[
  3. x^2 + y^2 == z^2, {x, -10, 10}, {y, -10, 10}, {z, -10, 10}];
  4. Plane[a_] := Plot3D[z = a*x + 2, {x, -10, 10}, {y, -10, 10}];
  5. InterM[a_] :=
  6. ParametricPlot3D[{t, -Sqrt[(a^2 - 1)*t^2 + 4*a*t + 4],
  7. 1*t + 2}, {t, -10, 10}, PlotStyle -> Thickness[0.02]];
  8. InterP[a_] :=
  9. ParametricPlot3D[{t, Sqrt[(a^2 - 1)*t^2 + 4*a*t + 4],
  10. a*t + 2}, {t, -10, 10}, PlotStyle -> Thickness[0.02]];
  11.  
  12. Manipulate[
  13. Show[
  14. {Cone[a], Plane[a], InterM[a], InterP[a]}
  15. ], {a, 0, 2}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement