2

How to get the output graph which consider only x^2+y^2=4 (the boundary of the region only)? I found this on the Help.

Plot3D[{x^2 + y^2, -x^2 - y^2}, {x, -2, 2}, {y, -2, 2}, 
RegionFunction -> Function[{x, y, z}, x^2 + y^2 <= 4], 
BoxRatios -> Automatic]

When I change <= to ==, no output comes. Or do I need to use different command?

minsat_hsn
  • 21
  • 1
  • 2
    Try the method given here: http://mathematica.stackexchange.com/a/5969/484 and the rest of the answers: http://mathematica.stackexchange.com/q/5968/484 –  Nov 21 '16 at 05:53

1 Answers1

3

There needs to be a finite thickness

Plot3D[{x^2 + y^2, -x^2 - y^2},
 {x, -2, 2}, {y, -2, 2},
 RegionFunction ->
  Function[{x, y, z}, 3.9 <= x^2 + y^2 <= 4],
 PlotPoints -> 75,
 MaxRecursion -> 6,
 BoxRatios -> Automatic]

enter image description here

Bob Hanlon
  • 157,611
  • 7
  • 77
  • 198