Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Plotting of Sin(x)/x

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84190] Re: Plotting of Sin(x)/x
  • From: Bill Rowe <readnewsciv at sbcglobal.net>
  • Date: Thu, 13 Dec 2007 01:26:07 -0500 (EST)

On 12/12/07 at 5:13 AM, drmajorbob at bigfoot.com (DrMajorBob) wrote:

>This works fine in versions 5.2 and 6:

>Plot[Sin[x]/x, {x, -Pi, Pi}]

On either version 5.2 or 6 it will be very platform dependent as
to whether this works or not. As long as the automatic sampling
algorithm on your specific platform doesn't sample too close to
x = 0, this will work. But if it does sample at x = 0 it will fail.

Plot doesn't simplify expressions. Instead, it merely
substitutes a numeric value for x then evaluates the result. And
this process will give 0/0 if x is 0.

With version 6, the solution is to use the built in function Sinc.

With earlier versions, you can define sinc[x] as follows:

sinc[0]=1;
sinc[0.]=1;
sinc[x]:=Sin[x]/x
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Expanding powers of cosine
  • Next by Date: Re: Silly question about Contexts
  • Previous by thread: Re: Plotting of Sin(x)/x
  • Next by thread: Printing Problem V6.01