How about adding rational fraction to Python?

Carl Banks pavlovevidence at gmail.com
Mon Feb 25 01:45:48 EST 2008


On Feb 24, 12:32 pm, Lie <Lie.1... at gmail.com> wrote:
> On Feb 18, 1:25 pm, Carl Banks <pavlovevide... at gmail.com> wrote:
>
> > 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.
>
> Repeated Addition and subtraction can't make fractions grow
> infinitely, only multiplication and division could.


What part of "repeated additions and divisions" don't you understand?



Carl Banks



More information about the Python-list mailing list