summaryrefslogtreecommitdiff
path: root/get_energy.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-05 11:25:41 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-05 11:25:41 -0300
commit685c562740aed1c62ec5ae27d5c138ce57e2dcee (patch)
treeb3823fcebc34b030d57f097f471119de0e393d2e /get_energy.cpp
parent96875ddafbf1ff821a4a1fd628c2e4758096700c (diff)
downloadcode-685c562740aed1c62ec5ae27d5c138ce57e2dcee.tar.gz
code-685c562740aed1c62ec5ae27d5c138ce57e2dcee.tar.bz2
code-685c562740aed1c62ec5ae27d5c138ce57e2dcee.zip
Rescale τₘₐₓ with τ₀ to make approximations more consistent accross parameters
Diffstat (limited to 'get_energy.cpp')
-rw-r--r--get_energy.cpp4
1 files changed, 2 insertions, 2 deletions
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₀;