Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: rect(x) and tri(x)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31492] Re: rect(x) and tri(x)
  • From: Erk Jensen <Erk.Jensen at cern.ch>
  • Date: Thu, 8 Nov 2001 04:54:33 -0500 (EST)
  • Organization: CERN http://www.cern.ch
  • References: <9sb4cs$d0d$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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)