summaryrefslogtreecommitdiff
path: root/log-fourier_integrator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'log-fourier_integrator.cpp')
-rw-r--r--log-fourier_integrator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index 51f5326..b21f275 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -76,10 +76,10 @@ int main(int argc, char* argv[]) {
/* Start from the exact solution for β = 0 */
for (unsigned n = 0; n < N; n++) {
- if (τ₀ > 0) {
+ if (τ₀ != 1) {
Cₜ₋₁[n] = Γ₀ * (exp(-μ * fft.t(n)) - μ * τ₀ * exp(-fft.t(n) / τ₀)) / (μ - pow(μ, 3) * pow(τ₀, 2));
} else {
- Cₜ₋₁[n] = Γ₀ * exp(-μ * fft.t(n)) / μ;
+ Cₜ₋₁[n] = Γ₀ * exp(-fft.t(n)) * (1 + fft.t(n));
}
Rₜ₋₁[n] = exp(-μ * fft.t(n));