Re: precision on op:numeric-divide

<[email protected]>
Newsgroups gmane.comp.web.query-languages
Message-ID <20031210081606.GA1496@laptop>
On Tue, Dec 09, 2003 at 09:03:08PM -0800, Per Bothner wrote:
> 
> >Finally, exact rationals, while perhaps desirable in some cases, can lead 
> >to
> >an explosion in memory usage if not controlled carefully, since there is no
> >upper bound on the precision used in the calculations.  A simple example:
> >compute (1/2)^n, for some very large n.
> 
> How is this different from 2^n for some very large n?

My example wasn't the best.  What I am trying to say is that repeatedly
performing a division a / b (with b > a) can very quickly lead to
unbounded growth in the height of the answer, whereas this is not the
case with floating point or integer division.

Controlling this can be difficult.  It does not mean exact rationals
have no uses, just that they are not as useful as many people expect.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.