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: [mg44573] Re: Defining function
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Sat, 15 Nov 2003 02:05:04 -0500 (EST)
  • References: <bovtvd$nbc$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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

Table[f[n], {n,-2,2}]

{0, 0, 1, E^(-I), E^(-2*I)}


Bob Hanlon

In article <bovtvd$nbc$1 at smc.vnet.net>, "Ravinder Kumar B."
<ravi at crest.ernet.in> wrote:

<< 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
 >><BR><BR>


  • 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: List manipulation
  • Previous by thread: Re: Defining function
  • Next by thread: NonlinearFit array to function defined by NDSolve?