Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Defining function

  • To: mathgroup at
  • Subject: [mg44566] Re: Defining function
  • From: poujadej at (Jean-Claude Poujade)
  • Date: Fri, 14 Nov 2003 04:43:13 -0500 (EST)
  • References: <bovtvd$nbc$>
  • Sender: owner-wri-mathgroup at

"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

This is the way I prefer, because you can
get derivatives :
f[t_] := Exp[-i*t]UnitStep[t];

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