Re: computing fractions



Blod-Svente wrote:

A really basic math question:

I'm trying to compute values like 2^-30000 (in base 10
representation). I'd like to get the decimals directly, without
dividing a bignum 40000 times to get 2^-40000 etc.

There oughta be some smarter way? (Say, O(log N) rather than
O(N)...) A general method (for any number base) would be cool,
but I'm also all ears if there's some special method for power
of 2 fractions.

The right terminology so I can find it with google/wikipedia
may be all I need...

Try dubldabl.txt at:

<http://cbfalconer.home.att.net/download/>

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net


--
Posted via a free Usenet account from http://www.teranews.com

.