diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-03 17:54:00 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-03 17:54:00 -0300 |
commit | a446c8ae813ae5e1c33d377dabd85d3d362b1878 (patch) | |
tree | 757a8f74f1c8cb2be42e03a337a6bf26d4ae5f2b /get_energy.cpp | |
parent | 0120bef06d4e537703ee7f0852ad31eceb43abf3 (diff) | |
download | code-a446c8ae813ae5e1c33d377dabd85d3d362b1878.tar.gz code-a446c8ae813ae5e1c33d377dabd85d3d362b1878.tar.bz2 code-a446c8ae813ae5e1c33d377dabd85d3d362b1878.zip |
Removed some more duplicate code.
Diffstat (limited to 'get_energy.cpp')
-rw-r--r-- | get_energy.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/get_energy.cpp b/get_energy.cpp index a388e0c..b1527dc 100644 --- a/get_energy.cpp +++ b/get_energy.cpp @@ -75,9 +75,7 @@ int main(int argc, char* argv[]) { std::vector<Complex> Ct = fft.fourier(C); std::vector<Complex> Rt = fft.fourier(R); - auto [RddfCt, dfCt] = RddfCtdfCt(fft, C, R, p, s, λ); - - Real z = ((std::conj(Rt[0]) + pow(y, 2) * (RddfCt[0] * Ct[0] + dfCt[0] * std::conj(Rt[0]))) / Ct[0]).real(); + Real z = estimateZ(fft, C, Ct, R, Rt, p, s, λ, y); std::cout << y << " " << e << " " << Ct[0].real() << " " << z << std::endl; } |