diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-02-10 14:52:50 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-02-10 14:52:50 -0300 |
commit | ad13e073a3b80db7185299dbe0c557dacab6b8cf (patch) | |
tree | 50a9cafc3655a359bde3e2e87bf37eaf9074fdb1 | |
parent | e65a7fd1181e68dd5ff858678e7407ce04838b6a (diff) | |
download | ictp-saifr_colloquium-ad13e073a3b80db7185299dbe0c557dacab6b8cf.tar.gz ictp-saifr_colloquium-ad13e073a3b80db7185299dbe0c557dacab6b8cf.tar.bz2 ictp-saifr_colloquium-ad13e073a3b80db7185299dbe0c557dacab6b8cf.zip |
Fixed Legendre basis function
-rw-r--r-- | fits.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ inline Real basisFunctions(unsigned N, unsigned i, Real x) { */ inline Real basisFunctions(unsigned N, unsigned i, Real x) { - return std::legendre(i, 0.5 * (x + 1.0)); + return std::legendre(i, 2.0 * (x - 0.5)); } /* |