Jon Perry on Mon, 21 Jul 2003 17:38:49 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Floating Point Error


Reading GPRC: /etc/gprc ...Done.

                  GP/PARI CALCULATOR Version 2.1.3 (released)
                i686 running cygwin (ix86 kernel) 32-bit version
              (readline v4.0 enabled, extended help not available)

                       Copyright (C) 2000 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and
comes WITHOUT ANY WARRANTY WHATSOEVER.

Type ? for help, \q to quit.
Type ?12 for how to get moral (and possibly technical) support.

   realprecision = 28 significant digits
   seriesprecision = 16 significant terms
   format = g0.28

parisize = 4000000, primelimit = 500000
? \p100
   realprecision = 105 significant digits (100 digits displayed)
? x=Pi
%1 =
3.1415926535897932384626433832795028841971693993751058209749445923078164062
86208998628034825342117068
? y=x*10^100
%2 =
314159265358979323846264338327950288419716939937510582097494459230781640628
62089986280348253421170680.
? y
%3 =
314159265358979323846264338327950288419716939937510582097494459230781640628
62089986280348253421170680.
? y=x*10^99
%4 =
314159265358979323846264338327950288419716939937510582097494459230781640628
6208998628034825342117068.
? y=x*10^98
%5 =
314159265358979323846264338327950288419716939937510582097494459230781640628
620899862803482534211706.8
?

Jon Perry
perry@globalnet.co.uk
http://www.users.globalnet.co.uk/~perry/maths/
http://www.users.globalnet.co.uk/~perry/DIVMenu/
BrainBench MVP for HTML and JavaScript
http://www.brainbench.com