| Karim Belabas on Thu, 22 Jan 2004 18:12:57 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: 28 digit precision and large number ratios |
* cino hilliard <hillcino368@hotmail.com> [2004-01-21 20:20]:
> Please iake a look at the following output for function g(n) = (n+1)/(n+2)
> This should be .9999.. or 1.0000... for large n. Notice below some trials.
> There appears to be a glitch in \p 28
[...]
Indeed:
(18:03) gp > (10^100 + 0.) / (10^100 + 1.)
%1 = 0.000000000000000000000000000000000000
A funny display bug introduced in 2.2.5, while fixing rounding problems
[ the computed quantities are fine internally, only the printing goes awry ].
Fixed in CVS.
Thanks!
Karim.
--
Karim Belabas Tel: (+33) (0)1 69 15 57 48
Dep. de Mathematiques, Bat. 425 Fax: (+33) (0)1 69 15 60 19
Universite Paris-Sud http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France) http://pari.math.u-bordeaux.fr/ [PARI/GP]