diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-13 20:24:26 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-13 20:24:26 -0300 |
commit | 34771600a168bc12d66986d62e60e77c11a161fe (patch) | |
tree | f422575a8e60ccec6e337ccc18527d46f4c64a91 | |
parent | 4079c1b22fdef05f84201453e11010662b7b5934 (diff) | |
download | code-34771600a168bc12d66986d62e60e77c11a161fe.tar.gz code-34771600a168bc12d66986d62e60e77c11a161fe.tar.bz2 code-34771600a168bc12d66986d62e60e77c11a161fe.zip |
Tweak to μ
-rw-r--r-- | log-fourier_integrator.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index 5ff27a4..f02aebc 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -156,7 +156,7 @@ int main(int argc, char* argv[]) { if (μ₋ > 0 && μ₊ > 0) { μₜ = (μ₊ + μ₋) / 2; } else { - μₜ *= C₀; + μₜ *= pow(tanh(C₀-1)+1, x); } } @@ -212,8 +212,6 @@ int main(int argc, char* argv[]) { } } - μₜ *= pow(tanh(C₀-1)+1, x); - ΔCₜ = 0; for (unsigned i = 0; i < N; i++) { ΔCₜ += std::norm(Cₜ[i] - Cₜ₊₁[i]); |