Skip to content

Commit

Permalink
Use powf in favor of ln/exp as documented.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3vu0r committed Dec 21, 2024
1 parent d6f92f7 commit 3fa52d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl Default for Algorithm {
fn default() -> Self {
Self {
criterion: Criterion::default(),
tolerance: (f64::EPSILON.ln() * 2.0 / 3.0).exp(),
tolerance: f64::EPSILON.powf(2.0 / 3.0),
iteration_limit: 100,
verbosity: Verbosity::default(),
}
Expand Down

0 comments on commit 3fa52d0

Please sign in to comment.