From 1062dfa43c4206760fa02bf0c4a971fd782cb75c Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 7 May 2025 23:07:09 -0300 Subject: Revert "Undo change to μ adjustement, calculate energy differently" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7332c03a462bf426f113110e00d9b28d306c4af0. --- log-fourier_integrator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'log-fourier_integrator.cpp') diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index 55f358a..017def7 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -140,7 +140,8 @@ int main(int argc, char* argv[]) { std::vector Rₜ₊₁ = fft.inverse(Ȓₜ₊₁); std::vector Cₜ₊₁ = fft.inverse(Ĉₜ₊₁); - μₜ *= pow(tanh(Cₜ₊₁[0]-1)+1, x); + Real C₀ = (Cₜ₊₁[0] + Cₜ₊₁[1]) / 2; + μₜ *= pow(tanh(C₀-1)+1, x); ΔCₜ = 0; for (unsigned i = 0; i < N; i++) { -- cgit v1.2.3-70-g09d2