From 685c562740aed1c62ec5ae27d5c138ce57e2dcee Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sat, 5 Apr 2025 11:25:41 -0300 Subject: Rescale τₘₐₓ with τ₀ to make approximations more consistent accross parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get_energy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'get_energy.cpp') diff --git a/get_energy.cpp b/get_energy.cpp index 8c610c5..c33c04e 100644 --- a/get_energy.cpp +++ b/get_energy.cpp @@ -50,8 +50,8 @@ int main(int argc, char* argv[]) { unsigned n = pow(2, log2n); - Real Δτ = τₘₐₓ / M_PI / n; - Real Δω = M_PI / τₘₐₓ; + Real Δτ = (1 + τ₀ / 2) * τₘₐₓ / M_PI / n; + Real Δω = M_PI / ((1 + τ₀ / 2) * τₘₐₓ); Real y = y₀; -- cgit v1.2.3-70-g09d2