MathGroup Archive 2003

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

Search the Archive

Re: Defining function

f[t_?Positive]:=Exp[-I t]
f[t_?Negative]:= 0

That leaves f[0] undefined, just as you did.


"Ravinder Kumar B." <ravi at> wrote in message news:<bovtvd$nbc$1 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.
> Regards,
> Ravi

  • Prev by Date: I have put "==" in every equation I have in NDSolve, why it keeps telling me they are not equations
  • Next by Date: Re: Defining function
  • Previous by thread: Re: Defining function
  • Next by thread: Re: Defining function