From 54d86d4883735b49c8df934f97435cb89bc5c0e2 Mon Sep 17 00:00:00 2001 From: Felix Hekhorn Date: Fri, 11 Oct 2024 16:25:32 +0300 Subject: [PATCH] rust: Cast to float with . --- crates/ekore/src/harmonics/w3.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ekore/src/harmonics/w3.rs b/crates/ekore/src/harmonics/w3.rs index cbcb5df59..4a0fe6e24 100644 --- a/crates/ekore/src/harmonics/w3.rs +++ b/crates/ekore/src/harmonics/w3.rs @@ -17,12 +17,12 @@ pub fn S3(N: Complex) -> Complex { /// Analytic continuation of harmonic sum $S_{-3}(N)$ for even moments. pub fn Sm3e(hS3: Complex, hS3h: Complex) -> Complex { - 1. / (2_f64).pow(2) * hS3h - hS3 + 1. / (2.).pow(2) * hS3h - hS3 } /// Analytic continuation of harmonic sum $S_{-3}(N)$ for odd moments. pub fn Sm3o(hS3: Complex, hS3mh: Complex) -> Complex { - 1. / (2_f64).pow(2) * hS3mh - hS3 + 1. / (2.).pow(2) * hS3mh - hS3 } /// Analytic continuation of harmonic sum $S_{-2,1}(N)$ for even moments.