From: kamal on
hi, i want plot
x - .5*(y + z) = (250*10^6) when y < .5*(x + z)
.5*(y + x) - z = (250*10^6) when y >= .5*(x + z)

how can i do that in contourplot3d

From: Bob Hanlon on

f[x_, y_, z_] := Piecewise[{
{x - (y + z)/2, y < (x + z)/2},
{(y + x)/2 - z, y >= (x + z)/2}}]

ContourPlot3D[
f[x, y, z] == (250*10^6),
{x, -10^9, 10^9},
{y, -10^9, 10^9},
{z, -10^9, 10^9}]

Or scaled by 10^7

ContourPlot3D[
f[x, y, z] == 25,
{x, -100, 100},
{y, -100, 100},
{z, -100, 100}]


Bob Hanlon

---- kamal <azimikamal(a)gmail.com> wrote:

=============
hi, i want plot
x - .5*(y + z) = (250*10^6) when y < .5*(x + z)
.5*(y + x) - z = (250*10^6) when y >= .5*(x + z)

how can i do that in contourplot3d