RE: Defining function
- To: mathgroup at smc.vnet.net
- Subject: [mg44542] RE: [mg44539] Defining function
- From: "David Park" <djmp at earthlink.net>
- Date: Fri, 14 Nov 2003 01:58:35 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Ravi, The best way is probably to use UnitStep. f[t_] := Exp[-I t]UnitStep[t] Plot[Re[f[t]], {t, -5, 5}]; f'[t] DiracDelta[t]/E^(I*t) - (I*UnitStep[t])/E^(I*t) Integrate[f[t], x] (x*UnitStep[t])/E^(I*t) David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Ravinder Kumar B. [mailto:ravi at crest.ernet.in] To: mathgroup 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