Skip to content

Commit

Permalink
Increase tolerance for the imaginary part of roots. Improve multiplic…
Browse files Browse the repository at this point in the history
…ity detection
  • Loading branch information
cpmech committed Jun 26, 2024
1 parent b8eb8a3 commit 7db4b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions russell_lab/src/algo/root_finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct RootFinder {
///
/// Accepts only roots such that `abs(Im(root)) < tol_abs_imaginary
///
/// Default = 1e-8
/// Default = 1e-7
pub tol_abs_imaginary: f64,

/// Holds the tolerance to discard roots outside the boundaries
Expand Down Expand Up @@ -62,7 +62,7 @@ impl RootFinder {
pub fn new() -> Self {
RootFinder {
tol_zero_an: 1e-13,
tol_abs_imaginary: 1.0e-8,
tol_abs_imaginary: 1.0e-7,
tol_abs_boundary: TOL_RANGE / 10.0,
newton_tol_zero_dx: 1e-13,
newton_tol_zero_fx: 1e-13,
Expand Down

0 comments on commit 7db4b37

Please sign in to comment.