Rationals and Linear Programming in Python

Paul Rubin phr-n2002a at nightsong.com
Sun May 12 14:28:31 EDT 2002


gmpy supports rationals.  Just say q = gmpy.mpq(1) to initialize q to 1/1.
Any arithmetic you do on it after that (except with floating point operands)
will give rational results.



More information about the Python-list mailing list