Re: rect(x) and tri(x)
- To: mathgroup at smc.vnet.net
- Subject: [mg31491] Re: rect(x) and tri(x)
- From: "Steve Luttrell" <luttrell at signal.qinetiq.com>
- Date: Thu, 8 Nov 2001 04:54:31 -0500 (EST)
- Organization: Defence Evaluation & Research Agency
- References: <9sb4cs$d0d$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Marcus Fin" <marco_pinna at ieee.org> wrote in message news:9sb4cs$d0d$1 at smc.vnet.net... > someone may help me to realize rect(x) e tri(x) functions with Mathematica ? > I thank you in advance. I am making a guess at what your rect and tri functions are, but here is how I would define them: rect[x_]:=0/;Abs[x]>1; rect[x_]:=1/;Abs[x]<=1; tri[x_]:=0/;Abs[x]>1; tri[x_]:=1-Abs[x]/;Abs[x]<=1; You can then check what they look like by doing the following plots: Plot[rect[x],{x,-3,3}]; Plot[tri[x],{x,-3,3}]; -- Steve Luttrell QinetiQ Malvern Technology Centre UK