Computing exponentials and Trig functions

Jim White mathimagics at
Fri Dec 7 21:50:36 CET 2007

> Still not as satisfying as doing it oneself.

Building one's own wheel from first principles can
certainly be educational, so I can relate to that. 

It can also be time-consuming, I should add!
The good folk at MPFR describe their algorithms - you
will have discovered this if you have visited their
home page.  Their trig functions are the fastest
"off-the-shelf" ones available, as you'll see from
their timings data.

The next fastest (for std trig functions) is CLN, and 
their approach is certainly worth studying.  The
primary source document there is a 1997/98 paper by
Bruno Haible and Thomas Papanikolau (Springer, LNCS

There are also some useful tips, as I recall, in a
general overview of Elementary Function Algorithms
that I originally found at, and
I think is till there.


Jim White

More information about the gmp-discuss mailing list