MathGroup Archive 1990

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

Search the Archive

No Bug found...

  • To: mathgroup at
  • Subject: No Bug found...
  • From: uunet!decide!bobk (Bob Korsan)
  • Date: Wed, 15 Aug 90 10:54:30 PDT

You write:

----- Begin Included Message -----

>From saxony!uunet!!mathgroup-adm Tue Aug 14 20:59:46 1990
From: uunet!!johnsonj
To: mathgroup at
Subject: Is N[10^-11,16] = a. 99999999999999e-12 a known bug?

There is a curious bug in the N[] function, involving (as far as I can tell)
only calculations at sixteen decimal places.  I did a quick check with

  Table[Table[{i, j, N[10^-i, j]}, {j, 1, 2 * i}], {i, 1, 50}]

and got errors for i = {11, 20, 25, 32, 36, 40}, all at i = 16.

Is this a bug in the most recent release?  (If so, better let Wolfram know!)
Also, is there a way around it besides avoiding the use of sixteen?  It just
so happens that CForm[N[x, 16]] is absolutely ideal for sending data to a C
program with double precision reals...

     johnsonj at

     Mathematica user Mike Tie, mtie at

----- End Included Message -----

I tried your problem on both a Unix kernel (Sun 386i) and a
MacIIx. Both version 1.2.1.  No bug for i={11,20} and I assume
the rest of the cases you tried.  What machine and what version
of Mathematica are you using?


  • Prev by Date: Position Available
  • Next by Date: Re: Bug in Integrate?
  • Previous by thread: Position Available
  • Next by thread: Re: Bug in Integrate?