inf class (was: gmpy floating point exception)

2007-03-29 Thread Martin Manns
On Thu, 29 Mar 2007 00:57:03 -0700 [EMAIL PROTECTED] (Alex Martelli) wrote: > Martin Manns <[EMAIL PROTECTED]> wrote: > > 2) Is there any inf type around with > > a + inf == inf > > inf > a (as long as a != inf) > > etc. > > that works with any other type? > > You mean something like: > > class

Re: gmpy floating point exception

2007-03-29 Thread Alex Martelli
Martin Manns <[EMAIL PROTECTED]> wrote: > Hi, > > I am experiencing some trouble with gmpy v1.01. > Multiplying an mpq with inf results in a floating point exception that > exits python. Has this already been fixed in newer gmpy versions? No, I can reproduce the problem (on a Mac with an Intel

gmpy floating point exception

2007-03-28 Thread Martin Manns
Hi, I am experiencing some trouble with gmpy v1.01. Multiplying an mpq with inf results in a floating point exception that exits python. Has this already been fixed in newer gmpy versions? ~ $ python Python 2.4.3 (#1, Mar 26 2007, 00:32:54) [GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2 Type "help", "