Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg44563] Re: Defining function
  • From: "Hans Michel" <hansjm at bellsouth.net>
  • Date: Fri, 14 Nov 2003 01:58:59 -0500 (EST)
  • References: <bovtvd$nbc$1@smc.vnet.net>
  • Reply-to: "Hans Michel" <hansjm at bellsouth.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Ravi:

Try using If[p,q,r]

myFunc[t_] := If[t>0, Exp[-I*t], 0]

But there are many other ways to do this also.

Hans
"Ravinder Kumar B." <ravi at crest.ernet.in> wrote in message
news:bovtvd$nbc$1 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: export a contourplot data as a tecplot output
  • Next by Date: List manipulation
  • Previous by thread: Re: Defining function
  • Next by thread: RE: Defining function