MathGroup Archive 2003

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

Search the Archive

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


  • Prev by Date: List manipulation
  • Next by Date: Re: Defining function
  • Previous by thread: Re: Defining function
  • Next by thread: Re: Defining function