Re: Defining function
- To: mathgroup at smc.vnet.net
- Subject: [mg44568] Re: Defining function
- From: drbob at bigfoot.com (Bobby R. Treat)
- Date: Fri, 14 Nov 2003 04:43:15 -0500 (EST)
- References: <bovtvd$nbc$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
f[t_?Positive]:=Exp[-I t] f[t_?Negative]:= 0 That leaves f[0] undefined, just as you did. Bobby "Ravinder Kumar B." <ravi at crest.ernet.in> wrote in message news:<bovtvd$nbc$1 at smc.vnet.net>... > Dear All, > How to define a function over two different ranges in mathematica. > For example > > f(t):= Exp[-i*t] for t > 0 and > = 0 for t < 0 > > Your response/clarification will be deeply appreciated. > Regards, > Ravi