[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues (original) (raw)
Christopher A. Craig list-python@ccraig.org
03 Oct 2002 09:09:42 -0400
- Previous message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Next message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Steve Holden" <sholden@holdenweb.com> writes:
Next someone will suggest that we store rationals as a sequence of coefficients of the prime factors. This would make primes really easy to recognise (since they'd be a sequence of zeros followed by a one with a single one as denominator).
It would make the gcd really fast too, even for extremely large numbers. :-)
-- Christopher A. Craig <list-python@ccraig.org> "It's the one thing I understand, I guess." Bill Gates, about BASIC
- Previous message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Next message: [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]