Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. xdata = Table[x, {x, -1, 1, 0.05}];
  2. ydata = Table[Sqrt[1 - x^2], {x, -1, 1, 0.05}];
  3. circData = {Transpose[{xdata, ydata}], Transpose[{xdata, -ydata}]};
  4. ListPlot[circData, Joined -> True, AspectRatio -> Automatic]
  5.  
  6. p = Plot3D[{1 + Sqrt[1 - y^2 - x^2 ], -1 -
  7. Sqrt[1 - y^2 - x^2 ]}, {x, -2, 2}, {y, -2, 2},
  8. PlotStyle -> {Orange}, Lighting -> Automatic, Mesh -> Automatic,
  9. BoxRatios -> Automatic, Boxed -> False, Axes -> None];
  10. q = RegionPlot3D[
  11. Sqrt[x^2 + y^2] < 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1},
  12. PlotStyle -> {Orange}, Lighting -> Automatic, Mesh -> Automatic,
  13. BoxRatios -> Automatic, Boxed -> False, Axes -> None];
  14. Show[p, q]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement