calculating exponential function with high precision.

486 Views Asked by At

How can I calculate $e^{-x}$ with 128 bit precision. I am using c on a machine of 32 bit wordsize. Thank you.

1

There are 1 best solutions below

2
On

I'd try the Gnu MPFR. There, the function you are interested in is mpfr_exp().