bugGNU Scientific Library - Bugs: bug #39292, possible error in...


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

bug #39292: possible error in gsl_sf_coulomb_wave_FG_e

Submitted by:  Patrick Alken <psa>
Submitted on:  Wed 19 Jun 2013 04:37:38 PM UTC  
Category: Runtime errorSeverity: 3 - Normal
Operating System: Status: None
Assigned to: NoneOpen/Closed: Open

Wed 19 Jun 2013 04:37:38 PM UTC, original submission:

From Alexey A. Illarionov:

Accidentally found a bug in specfun/coulomb.c . Trivial error in
solution of quadratic equation. None of the current test cases are
influenced by this bug since the value of C (actually N) determines
only the condition of applicability of "continued fraction+recursion"

=== modified file 'specfunc/coulomb.c'
- --- specfunc/coulomb.c 2007-07-02 18:34:24 +0000
+++ specfunc/coulomb.c 2012-10-26 04:27:18 +0000
@@ -1121,7 +1121,7 @@
* we must go at least as low as lam_G
- - const double C = sqrt(1.0 + 4.0x(x-2.0*eta));
+ const double C = 0.5 * sqrt(1.0 + 4.0x(x-2.0*eta));
const int N = ceil(lam_F - C + 0.5);
const double lam_0 = lam_F - GSL_MAX(N, 0);
const double lam_min = GSL_MIN(lam_0, lam_G);

Patrick Alken <psa>
Project Administrator


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 psa (Submitted the item)

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



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1