I need to plot a function in implicit form as below:
ContourPlot3D[{73.04 z*y^2 - 293.04 z*x^2 ==
2605.68 y^2 - 2605.68 x^2}, {x, 0, 3}, {y, 0, 6}, {z, 0, 15}]
but with the constraint x > y
. How can I do this with Mathematica?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityTake a look at RegionFunction
, e.g.:
ContourPlot3D[{73.04 z*y^2 - 293.04 z*x^2 == 2605.68 y^2 - 2605.68 x^2},
{x, 0, 10}, {y, 0, 20}, {z, 0, 15},
RegionFunction -> Function[{x, y, z, f}, x > y]]
ContourPlot3D[{73.04 z*y^2 - 293.04 z*x^2 == 2605.68 y^2 - 2605.68 x^2}, {x, 0, 3}, {y, 0, 6}, {z, 0, 15}, RegionFunction -> Function[{x, y, z}, x > y]]
? $\endgroup$RegionFunction
? (I've not tested this). That is, for CP3D, MM supplies 4 arguments to the function (I was surprised it "matched" a function with only 3 as in your comment), so I'm guessing it wraps theRegionFunction
specified in a way that some arguments become optional. Thoughts? $\endgroup$RegionFunction
itself, it explicitly shows four for CP3D et al. $\endgroup$