MathGroup Archive 2004

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

Search the Archive

Re: How to plot...

  • To: mathgroup at
  • Subject: [mg46055] Re: How to plot...
  • From: Bill Rowe <readnewsciv at>
  • Date: Tue, 3 Feb 2004 22:19:08 -0500 (EST)
  • Sender: owner-wri-mathgroup at

On 2/3/04 at 3:21 AM, oliver.kowalke at (Oliver Kowalke)

>I want to plot sin(x)/x on x=0.

>f3 := Which[x==0,1,0<x,Abs[Sin[x]/x]];

Your problem is the way you have defined f3. Define f3 as follows:

f3[x_]:=Which[x==0,1,0<x, Abs[Sin[x]/x]]

This should give you what you want although it will not be a plot of sin(x)/x

If I were to plot sin(x)/x I would define the function as follows


Your function differs from sin(x)/x in two ways. It is always positive and it is not defined for x<0.
To reply via email subtract one hundred and four

  • Prev by Date: FactorTerms
  • Next by Date: Re: help for time series basic operations
  • Previous by thread: RE: How to plot...
  • Next by thread: Re: How to plot...