MathGroup Archive 2001

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

Search the Archive

Re: rect(x) and tri(x)


Marcus Fin wrote:
> 
> Hi,
> someone may help me to realize rect(x) e tri(x) functions with Mathematica ?
> I thank you in advance.
> 
> Marcus Fin

Maybe like 
rect[x_] := Which[x < 0, 0, x <= 1, 1, x > 1, 0]
if this is what you mean by rect[x] ...  

Ciao
 -erk-


  • Prev by Date: Re: ListContourPlot Color
  • Next by Date: Notebook question
  • Previous by thread: rect(x) and tri(x)
  • Next by thread: Re: rect(x) and tri(x)