MathGroup Archive 2006

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

Search the Archive

Re: 3D-plot over a triangle


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