MathGroup Archive 2006

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

Search the Archive

Re: 3D-plot over a triangle

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65062] Re: 3D-plot over a triangle
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 12 Mar 2006 23:59:45 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <duudid$i2k$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

pluton wrote:
> Hi there,
> 
> I want to plot the following function f = 4*s*t over a triangle defined
> by s going from 0 to 1
> and t from 0 to 1-s.
> 
> I tried Plot3D[4st, {s, 0, 1}, {t, 0, 1-s}]; but it does not work. Any
> suggestion ?
> 
> Thank you,
> 
> Pluton
> 
Hi Pluton,

You could use the *Boole* function:

Plot3D[4*s*t*Boole[0 <= s <= 1 && 0 <= t <= 1 - s],
    {s, 0, 1}, {t, 0, 1}];

Best regards,
/J.M.


  • Prev by Date: Re: Combining Matrices
  • Next by Date: Re: How to get page breaks to work for printing
  • Previous by thread: Re: 3D-plot over a triangle
  • Next by thread: Re: 3D-plot over a triangle