M
Martin Manns
Hi,
I am starting to use rationals and since I found no batteries included,
I tried out the mxNumber package.
However, I get strange warnings on comparison operations
(which however seem to yield correct results):
---
$ python
Python 2.4.3 (#1, Jan 15 2007, 15:46:19)
[GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.__main__:1: RuntimeWarning: tp_compare didn't return -1, 0 or 1
False---
How do I get rid of these warnings?
Is there any rational number library around that
1) is comparably fast for large denominators
2) allows deriving types from Rationals without wrapping?
Regards
Martin
P.S. The respective mailing list does not like me, so that I try my
luck here.
I am starting to use rationals and since I found no batteries included,
I tried out the mxNumber package.
However, I get strange warnings on comparison operations
(which however seem to yield correct results):
---
$ python
Python 2.4.3 (#1, Jan 15 2007, 15:46:19)
[GCC 4.1.1 (Gentoo 4.1.1-r3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.__main__:1: RuntimeWarning: tp_compare didn't return -1, 0 or 1
False---
How do I get rid of these warnings?
Is there any rational number library around that
1) is comparably fast for large denominators
2) allows deriving types from Rationals without wrapping?
Regards
Martin
P.S. The respective mailing list does not like me, so that I try my
luck here.