Message Boards Message Boards

Does anyone know how to plot a 3D set of points with multiple constraints?

I'm not sure if Wolfram|Alpha has this capability, but I'd like a plot of the following set of points:

{(x,y,z) in R : x^2 + y^2 + z^2 = 5, y^2 + z^2 <= 3, and x>= 0}

Currently, every time I try to plot this, Wolfram interprets it as just x^2 + y^2 + z^2 = 5.

Any help is appreciated.

POSTED BY: Aidan de Nobrega

Equalities are handled by ContourPlot3D, with RegionFunction carving a subset defined by inequalities:

 x^2 + y^2 + z^2 == 5, {x, -1, 3}, {y, -3, 3}, {z, -3, 3}, 
 RegionFunction -> Function[{x, y, z}, y^2 + z^2 <= 3 && x >= 0]]

Pay attention to the double == instead of single =

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract