MathGroup Archive 2003

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

Search the Archive

RE: Defining function

  • To: mathgroup at
  • Subject: [mg44542] RE: [mg44539] Defining function
  • From: "David Park" <djmp at>
  • Date: Fri, 14 Nov 2003 01:58:35 -0500 (EST)
  • Sender: owner-wri-mathgroup at


The best way is probably to use UnitStep.

f[t_] := Exp[-I t]UnitStep[t]

Plot[Re[f[t]], {t, -5, 5}];

DiracDelta[t]/E^(I*t) - (I*UnitStep[t])/E^(I*t)

Integrate[f[t], x]

David Park
djmp at 

From: Ravinder Kumar B. [mailto:ravi at]
To: mathgroup at

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.

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