bugGNU Scientific Library - Bugs: bug #37209, gsl_sf_bessel_jl_e returns NaN for...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #37209: gsl_sf_bessel_jl_e returns NaN for large inputs without setting error code

Submitted by:  Rhys Ulerich <rhysu>
Submitted on:  Tue 28 Aug 2012 02:15:22 PM UTC  
 
Category: Accuracy problemSeverity: 3 - Normal
Operating System: Status: None
Assigned to: NoneOpen/Closed: Open
Release: 

Tue 28 Aug 2012 02:15:22 PM UTC, original submission:

From: -unavailable- Jakub Benda
To: -unavailable-
Date: Tue, 28 Aug 2012 01:33:59 -0500
Subject: [Bug-gsl] Spherical Bessel function failure

The spherical Bessel function returns NaN for some (large) inputs without
setting the error code.
Example program:

--------------------------------------------------------------------------------
#include <stdio.h>
#include <gsl/gsl_sf.h>

int main(void)
{
gsl_sf_result res;
int err = gsl_sf_bessel_jl_e(364, 36.62, &res);

printf("err = %d\n", err);
printf("res.val = %g\n", res.val);
printf("res.err = %g\n", res.err);

return 0;
}
--------------------------------------------------------------------------------

Output:

--------------------------------------------------------------------------------
err = 0
res.val = -nan
res.err = nan
--------------------------------------------------------------------------------

Jakub

Rhys Ulerich <rhysu>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rhysu (Submitted the item)
  • -unavailable- added by rhysu
  • -unavailable- added by rhysu
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Aug 2012 02:15:22 PM UTCrhysuCarbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup