diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-18 18:35:11 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-18 18:35:11 -0300 |
commit | 077b51f1eb359aae744aae655c4199e8dd458cb0 (patch) | |
tree | 9f1bedcfdb468317a3641070d933ac46e63016de | |
parent | f04b5fb15f535faf4fcadc8d98e1f5225ff4d14b (diff) | |
download | code-077b51f1eb359aae744aae655c4199e8dd458cb0.tar.gz code-077b51f1eb359aae744aae655c4199e8dd458cb0.tar.bz2 code-077b51f1eb359aae744aae655c4199e8dd458cb0.zip |
Simplified initial C
-rw-r--r-- | log-fourier_integrator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp index f553569..30354a6 100644 --- a/log-fourier_integrator.cpp +++ b/log-fourier_integrator.cpp @@ -114,7 +114,7 @@ int main(int argc, char* argv[]) { if (τ₀ == 2) { Cₜ₋₁[n] = Γ₀ * std::exp(-fft.t(n) / 2) * (1 + fft.t(n) / 2); } else { - Cₜ₋₁[n] = Γ₀ * (std::exp(-μ₀ * fft.t(n)) - μ₀ * τ₀ * std::exp(-fft.t(n) / τ₀)) / (μ₀ - pow(μ₀, 3) * pow(τ₀, 2)); + Cₜ₋₁[n] = Γ₀ * (std::exp(-μ₀ * fft.t(n)) / μ₀ - τ₀ * std::exp(-fft.t(n) / τ₀)) / (1 - pow(μ₀ * τ₀, 2)); } } else { Cₜ₋₁[n] = Γ₀ * std::exp(-μ₀ * fft.t(n)) / μ₀; |