Re: computing fractions
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Wed, 30 May 2007 05:58:34 -0400
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
.
- Follow-Ups:
- Re: computing fractions
- From: Blod-Svente
- Re: computing fractions
- References:
- computing fractions
- From: Blod-Svente
- computing fractions
- Prev by Date: Re: Web vs. Desktop based systems
- Next by Date: Re: computing fractions
- Previous by thread: computing fractions
- Next by thread: Re: computing fractions
- Index(es):