Skip to content

Commit

Permalink
rust: Cast to float with .
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Oct 11, 2024
1 parent 7396c67 commit 54d86d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ekore/src/harmonics/w3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ pub fn S3(N: Complex<f64>) -> Complex<f64> {

/// Analytic continuation of harmonic sum $S_{-3}(N)$ for even moments.
pub fn Sm3e(hS3: Complex<f64>, hS3h: Complex<f64>) -> Complex<f64> {
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<f64>, hS3mh: Complex<f64>) -> Complex<f64> {
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.
Expand Down

0 comments on commit 54d86d4

Please sign in to comment.