help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] strange behaviour of addition of floats and exponential f


From: Jordi Gutiérrez Hermoso
Subject: Re: [Help-gsl] strange behaviour of addition of floats and exponential function
Date: Wed, 26 Jan 2011 17:21:50 -0600

2011/1/26 Chandra Sekhar Mallarapu <address@hidden>:
> gsl_sf_exp(0.0000000000000000000000005731906218817495693050559208091994557794428814131237532386326994000326495726)
> gives me the value as
> 1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
> instead of the actual value. What can I do to get a correct answer

That is the correct answer for an IEEE 754 double type.

I think you're expecting to use a multiprecision library. Perhaps you
should use GMP instead of the GSL.

- Jordi G. H.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]