* test_bessel.c: bessel_Jn_e(0, 20000)
@ 2007-09-25 2:58 Yoshiki TSUNESADA
2007-09-25 19:17 ` Brian Gough
0 siblings, 1 reply; 2+ messages in thread
From: Yoshiki TSUNESADA @ 2007-09-25 2:58 UTC (permalink / raw)
To: gsl-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: test_bessel.c: bessel_Jn_e(0, 20000)
2007-09-25 2:58 test_bessel.c: bessel_Jn_e(0, 20000) Yoshiki TSUNESADA
@ 2007-09-25 19:17 ` Brian Gough
0 siblings, 0 replies; 2+ messages in thread
From: Brian Gough @ 2007-09-25 19:17 UTC (permalink / raw)
To: Yoshiki TSUNESADA; +Cc: gsl-discuss
At Mon, 24 Sep 2007 22:58:10 -0400,
Yoshiki TSUNESADA wrote:
>
> 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);
Thanks, I will correct the values.
In the GSL source these lines are commented out with #ifdef so they
shouldn't normally cause a failure when running 'make check'.
--
Brian Gough
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-25 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-25 2:58 test_bessel.c: bessel_Jn_e(0, 20000) Yoshiki TSUNESADA
2007-09-25 19:17 ` Brian Gough
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).