Trait roots::Convergency [] [src]

pub trait Convergency<F: FloatType> {
    fn is_root_found(&self, y: F) -> bool;
    fn is_converged(&self, x1: F, x2: F) -> bool;
    fn is_iteration_limit_reached(&self, iter: usize) -> bool;
}

The way to check if the algorithm has finished by either finding a root or reaching the iteration limit.

Required Methods

Return true if the given Y value is close enough to the zero

Return true if given x values are close enough to each other

Return true if no more iterations desired

Implementors