Boost logo

Boost :

From: Peder Holt (peder.holt_at_[hidden])
Date: 2005-11-03 01:05:57

> Excellent!
> I've now added a power function to the mix,
> implemented in terms of exponential and logarithm. A
> more efficient implementation that uses fractions or
> other series functions may come later.
> Cromwell D. Enage


I tried implementing a power using fractions, but it turned out that
for larger exponents its convergence rate was very poor. (I needed
~100 recursions for something like 10^20)

What we should do, is add a specialization for power with integral
exponent. This is a very fast algorithm (also in respect to
compile-time efficiency)
What we could do, is to split power(z,a) into two:


> __________________________________
> Start your day with Yahoo! - Make it your home page!
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at