diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-07 22:56:34 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-07 22:56:34 -0300 |
commit | 7332c03a462bf426f113110e00d9b28d306c4af0 (patch) | |
tree | 508fbf758840cf6d1129de00f961251b8329c92a /log-fourier_integrator.cpp | |
parent | b9e5a1f2448aeaca8aa807f3baccbe66f5dc49d2 (diff) | |
download | code-7332c03a462bf426f113110e00d9b28d306c4af0.tar.gz code-7332c03a462bf426f113110e00d9b28d306c4af0.tar.bz2 code-7332c03a462bf426f113110e00d9b28d306c4af0.zip |
Undo change to μ adjustement, calculate energy differently
Diffstat (limited to 'log-fourier_integrator.cpp')
-rw-r--r-- | log-fourier_integrator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index 017def7..55f358a 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -140,8 +140,7 @@ int main(int argc, char* argv[]) { std::vector<Real> Rₜ₊₁ = fft.inverse(Ȓₜ₊₁); std::vector<Real> Cₜ₊₁ = fft.inverse(Ĉₜ₊₁); - Real C₀ = (Cₜ₊₁[0] + Cₜ₊₁[1]) / 2; - μₜ *= pow(tanh(C₀-1)+1, x); + μₜ *= pow(tanh(Cₜ₊₁[0]-1)+1, x); ΔCₜ = 0; for (unsigned i = 0; i < N; i++) { |