Igor Schein on Wed, 8 Jan 2003 21:17:57 -0500 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gp: gcd(0), tan(Pi/2) error messages unhelpful |
On Tue, Jan 07, 2003 at 04:04:48AM +0100, Karim BELABAS wrote: > On Mon, 6 Jan 2003, Michael Somos wrote: > > ? gcd(0) > > *** incorrect type in association. > > ? \p29 > > realprecision = 38 significant digits (29 digits displayed) > > ? tan(Pi/2) > > *** division by zero in R/R > > > > These error messages are unhelpful. In a program which calls these > > in lower-level functions, it is not easy to figure out where these > > error messages came from. While not bugs in 'gp' itself, they can > > make finding bugs in user function difficult. Shalom, Michael > > The second one is easy to fix: > > (03:57) gp > tan(Pi/2) > *** can't compute tan(Pi/2 + kPi). GP/PARI CALCULATOR Version 2.2.5 (development CHANGES-1.641) i686 running linux (ix86 kernel) 32-bit version (readline v4.3 enabled, extended help available) ? tan(Pi/2) -39614081257132168796771975169. Thanks Igor