Message Boards Message Boards

0
|
720 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Why can "ContourPlot3D" plot the range outside the definition?

Posted 3 months ago

Hello,

ContourPlot3D[{z == Sqrt[2 - x^2 - y^2]}, {x, -2, 2}, {y, -2, 
  2}, {z, -2, 2}, AxesLabel -> Automatic]

will produce

enter image description here

Why can this function draw an image when z is less than 0? In this case, the definition domain of z has been exceeded.

POSTED BY: Zhenyu Zeng

Interesting:

ContourPlot3D[z - Sqrt[2 - x^2 - y^2],
 {x, -2, 2}, {y, -2, 2}, {z, -2, 2},
 AxesLabel -> Automatic,
 Contours -> {1, -1}]
ContourPlot3D[z - Sqrt[Abs[2 - x^2 - y^2]],
 {x, -2, 2}, {y, -2, 2}, {z, -2, 2},
 AxesLabel -> Automatic,
 Contours -> {1, -1}]

In dimension 2 there is no problem:

ContourPlot[z - Sqrt[2 - x^2],
 {x, -2, 2}, {z, -2, 2},
 Contours -> {1, 0, -1}, ContourShading -> False]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract