Mathematica 9 is now available
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: [mg44546] Re: Defining function
  • From: "Chia-Ming" <yucalf at mail.educities.edu.tw>
  • Date: Fri, 14 Nov 2003 01:58:38 -0500 (EST)
  • Organization: DCI HiNet
  • References: <bovtvd$nbc$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Ravi,

I guess what the following shows is what you want:
f[t_] := Which[t > 0, E^(-i*t ), t < 0, 0]

You can check that f[1] yields the output E^(-1),
and f[-1] yields output 0.

Good luck!

Chia-Ming Yu


"Ravinder Kumar B." <ravi at crest.ernet.in> ¦b¶l¥ó
news:bovtvd$nbc$1 at smc.vnet.net ¤¤¼¶¼g...
> 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: Re: Defining function
  • Next by Date: Re: Defining function
  • Previous by thread: Re: Defining function
  • Next by thread: Re: Defining function