This is the mail archive of the gsl-discuss@sourceware.org mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

test_bessel.c: bessel_Jn_e(0, 20000)


 I encountered a glitch: A test code fails, in "specfunc/test_bessel.c", 
line 61,

  TEST_SF(s, gsl_sf_bessel_Jn_e, (0, 20000, &r), 
          -7.676508175684157103e-06, TEST_TOL4, GSL_SUCCESS);
          
The "expected" value -7.67651e-06 is exactly same as the one for
the test of line 60, the preceding line,

  TEST_SF(s, gsl_sf_bessel_Jn_e, (1, 1.0e+10, &r), 
          -7.676508175684157103e-06, TEST_TOL4, GSL_SUCCESS);

and this test passes. I guess the expected value in the line 61 
is mis-pasted. The following is an example session using Ruby/GSL:

   yoshiki@poirot[71] irb
   irb(main):001:0> require("rbgsl")
   => true
   irb(main):002:0> GSL::Sf::bessel_Jn(0, 20000)
   => 0.00556597490495494
   irb(main):003:0> GSL::Sf::bessel_Jn(1, 1.0e10)
   => -7.67650817568416e-06
 
 I don't have any other tools to compare and verify these results.
 
 Best regards,
 Yoshiki


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]