[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] gsl_sf_coupling_6j_e and gsl_sf_coupling_9j_e input validation
From: |
Håkan Johansson |
Subject: |
[Bug-gsl] gsl_sf_coupling_6j_e and gsl_sf_coupling_9j_e input validation |
Date: |
Thu, 11 Jul 2013 16:17:25 +0200 |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
The coupling of three spins requires the total sum to be integer. This is
not checked on gsl_sf_coupling_6j_e or gsl_sf_coupling_9j_e.
We discovered it when trying to evaluate the 9j symbol:
(1/2 1/2 1/2)
(1/2 1/2 1/2)
( 0 0 0 )
and got a non-zero result. We believe that the recursive calculations of
6j should have given the zero, but found also that lacking similar checks.
The attached patch also include some test cases. The 6js have been
cross-checked with Mathematica.
Best regards,
Håkan Johansson
coupling_6_9_halfint_check.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gsl] gsl_sf_coupling_6j_e and gsl_sf_coupling_9j_e input validation,
Håkan Johansson <=