Advertisement
Matthen

inverse square laws

Jul 1st, 2011
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Manipulate[
  2. Show[ParametricPlot3D[
  3. Table[1.01 r {Cos[v] Cos[u], Sin[v] Cos[u], Sin[u]},
  4. {r, t - Floor[t/0.2]*0.2, t, 0.2}]
  5. , {u, 0, Pi/2}, {v, 0, Pi/2},
  6. PlotRange -> {{-1, 1}, {-1, 1}, {-1, 1}}, Boxed -> False,
  7. Axes -> None, ViewPoint -> {-5, 10, 5}, Mesh -> {4, 4},
  8. PlotStyle -> Directive[Specularity[White], Yellow]],
  9. Graphics3D[{PointSize[Large], Point[{0, 0, 0}], Opacity[0.3], Red,
  10. Table[Sphere[{0, 0, 0}, r], {r, t - Floor[t/0.2]*0.2, t, 0.2}]}]]
  11. ,
  12. {{t, 0.5}, 0, 1}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement