BUG: wrong weights of the 7-point gauss rule in QUADPACK: dqk15w.f
See original GitHub issueDescribe your issue.
QUADPACK: dqk15w.f: line #103, wrong weights of the 7-point gauss rule The weights of wg should be the same as “dqk15.f”: #103: “0.3818300505051889d+00”, should be changed to “0.3818300505051189d+00”. This is a historical typo that commonly exists in every code that embeds netlib-quadpack, which does not necessarily produce an actual numerical error in the calculation of the error of the quadrature using the Gauss-Kronrod rule.
Reproducing Code Example
c dqk15: #80-#83
data wg ( 1) / 0.1294849661 6886969327 0611432679 082 d0 /
data wg ( 2) / 0.2797053914 8927666790 1467771423 780 d0 /
data wg ( 3) / 0.3818300505 0511894495 0369775488 975 d0 /
data wg ( 4) / 0.4179591836 7346938775 5102040816 327 d0 /
c dqk15i: #97-#104
data wg(1) / 0.0d0 /
data wg(2) / 0.1294849661 6886969327 0611432679 082d0 /
data wg(3) / 0.0d0 /
data wg(4) / 0.2797053914 8927666790 1467771423 780d0 /
data wg(5) / 0.0d0 /
data wg(6) / 0.3818300505 0511894495 0369775488 975d0 /
data wg(7) / 0.0d0 /
data wg(8) / 0.4179591836 7346938775 5102040816 327d0 /
c dqk15w: #101-#103
data wg(1),wg(2),wg(3),wg(4)/
* 0.1294849661688697d+00, 0.2797053914892767d+00,
* 0.3818300505051889d+00, 0.4179591836734694d+00/
Error message
no error message
SciPy/NumPy/Python version information
Any Version
Issue Analytics
- State:
- Created 2 years ago
- Comments:22 (16 by maintainers)
Top Results From Across the Web
Gaussian Quadrature 2: How to Determine the Weights
https://bit.ly/PavelPatreonhttps://lem.ma/LA - Linear Algebra on Lemmahttp://bit.ly/ITCYTNew - Dr. Grinfeld's Tensor Calculus ...
Read more >quadpack - The Netlib
file dqc25s.f dqc25s.f plus dependencies gams H2a2a2 file qc25s.f qc25s.f plus ... point rule and give error estimate, non-automatic prec double file qk21.f...
Read more >Gaussian quadrature - Wikipedia
In numerical analysis, a quadrature rule is an approximation of the definite integral of a function, usually stated as a weighted sum of...
Read more >SciPy 1.8.0 Release Notes — SciPy v1.9.3 Manual
Our development attention will now shift to bug-fix releases on the 1.8.x ... #14807: BUG: wrong weights of the 7-point gauss rule in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Reminds me of an incorrect citation (Herzberg something) that was propagated in many papers. It seems that none of the authors actually consulted the original work, they just copied the citation 😃
Yes, we plan to maintain QUADPACK at fortran-lang just like we already maintain FFTPACK (https://github.com/fortran-lang/fftpack).
@langou, would you be interested in joining efforts on that? You can be the main maintainer of it. It seems you already de-facto are.