MathGroup Archive 2004

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

Search the Archive

Re: Errors with decimal addition in Mathematica 5.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg47429] Re: Errors with decimal addition in Mathematica 5.0
  • From: Harold.Noffke at wpafb.af.mil (Harold Noffke)
  • Date: Sun, 11 Apr 2004 04:44:06 -0400 (EDT)
  • References: <c582pm$npb$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Peng:

Let's look at "correctness".

  x = 13505.5  = 135055/10
  y =   244.91 = 24491/100

  x-y = 1326059/100 = 13260.59

So, it is Mathematica which gives you the "correct" answer.

If you read the Mathematica 5 Book, 3.1.4 Numerical Precision, you
will find more information on this issue.

Regards,
Harold


  • Prev by Date: Re: Integration of x BesselI[0,x]^3
  • Next by Date: Complex Numbers
  • Previous by thread: Re: Errors with decimal addition in Mathematica 5.0
  • Next by thread: Re: Errors with decimal addition in Mathematica 5.0