How about adding rational fraction to Python?
Carl Banks
pavlovevidence at gmail.com
Mon Feb 18 01:25:36 EST 2008
On Feb 17, 1:45 pm, Lie <Lie.1... at gmail.com> wrote:
> > Any iteration with repeated divisions and additions can thus run the
> > denominators up. This sort of calculation is pretty common (examples:
> > compound interest, numerical integration).
>
> Wrong. Addition and subtraction would only grow the denominator up to
> a certain limit
I said repeated additions and divisions.
Anyways, addition and subtraction can increase the denominator a lot
if for some reason you are inputing numbers with many different
denominators.
Carl Banks
More information about the Python-list
mailing list