computing fractions
- From: Blod-Svente <squarewave@xxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 10:48:21 +0200
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...
Thanks,
Bosse
.
- Follow-Ups:
- Re: computing fractions
- From: Duncan Muirhead
- Re: computing fractions
- From: CBFalconer
- Re: computing fractions
- Prev by Date: Re: Algorithm to extract lines of a tab with the max value for a given reference number
- Next by Date: Re: Web vs. Desktop based systems
- Previous by thread: divide & conquer algorithm to implement string matching
- Next by thread: Re: computing fractions
- Index(es):
Relevant Pages
|