MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ploting piecewise function in contourplot3d section

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111674] Re: ploting piecewise function in contourplot3d section
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 10 Aug 2010 03:54:00 -0400 (EDT)

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 at 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



  • Prev by Date: Re: Suggestions
  • Next by Date: Re: Mathematica and uniform distributions
  • Previous by thread: ploting piecewise function in contourplot3d section
  • Next by thread: remote kernel problem