summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-19 18:12:44 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-19 18:12:44 -0300
commit94600fe71027fd262f0bb8f152dcdb0474ec1897 (patch)
treec2e4561972efce50ff7acf6adbd51a95fd457563
parent84e41519a0d98c450c0d44194ca7c722f9d2d997 (diff)
downloadcode-94600fe71027fd262f0bb8f152dcdb0474ec1897.tar.gz
code-94600fe71027fd262f0bb8f152dcdb0474ec1897.tar.bz2
code-94600fe71027fd262f0bb8f152dcdb0474ec1897.zip
Faster approach to μ
-rw-r--r--log-fourier_integrator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index bc53f99..cc42cba 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -176,7 +176,7 @@ int main(int argc, char* argv[]) {
/* We found an upper bound */
μ₂ = μ;
}
- μ *= sqrt(sqrt(fac*std::tanh(Cₜ[0]-1)+1));
+ μ *= fac*std::tanh(Cₜ[0]-1)+1;
} else {
/* Once the bounds are set, we can use bisection */
if (Cₜ[0] > 1) {