bug-gsl
[Top][All Lists]
Advanced

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

[Bug-gsl] [bug #37209] gsl_sf_bessel_jl_e returns NaN for large inputs w


From: Patrick Alken
Subject: [Bug-gsl] [bug #37209] gsl_sf_bessel_jl_e returns NaN for large inputs without setting error code
Date: Fri, 04 Oct 2013 17:39:56 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0

Follow-up Comment #2, bug #37209 (project gsl):

The two issues below are in fact separate bugs in the spherical bessel code.

The bug report from 28 Aug 2012 involves an instability condition in the
downward recurrence relation after computing the CF1 continued fraction. This
instability appears when x is small relative to l. There is a short discussion
of this in Numerical Recipes, but I have been unable to find a fully
acceptable solution in the literature. Many other bessel codes are susceptable
to this same bug (including NR and Barnett's SBESJY.F routine).

I was able to fix this particular test case by starting with a smaller initial
value to the recurrence relation, which delays (but does not completely fix)
the overflow condition. The code now works for l = 364, x = 36.62, however
there are probably other combinations of large l, small x which will cause an
overflow in the downward recurrence.

This is partially fixed in rev 4850.

------

The bug report from 23 Sep 2013 involves a different branch of the code and
the gsl_sf_bessel_IJ_taylor_e function - this is still open.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37209>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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