This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
test_bessel.c: bessel_Jn_e(0, 20000)
- From: Yoshiki TSUNESADA <y-tsunesada at mm dot em-net dot ne dot jp>
- To: gsl-discuss at sourceware dot org
- Date: Mon, 24 Sep 2007 22:58:10 -0400
- Subject: 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