At Wed, 13 Jul 2011 11:54:42 +0200,
Maximilian Treiber wrote:
> the function f(x)=ln(cosh(x)) is obviously symmetric, ie f(x)=f(-x),
> right?
> 
> The current implementation in gsl seems to be incorrect for negative
> values:
>
> The second elseif is met for large negative numbers, while the
> correct asymptotic limit would be "f(x->-inf) = |x|-ln(2)".
> 
> Replacing x by fabs(x) everywhere should fix the problem ...

Hi. Thanks for the bug report, you are right. I've just committed a
patch for the problem.

-- 
Brian Gough


_______________________________________________
Help-gsl mailing list
Help-gsl@gnu.org
https://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to