pub struct BisectionMethod {
pub a: f64,
pub b: f64,
}Expand description
Bisection method root finder
Guaranteed convergence method that requires an initial bracket [a, b] where f(a) and f(b) have opposite signs.
Fields§
§a: f64Lower bound of initial bracket
b: f64Upper bound of initial bracket
Implementations§
Trait Implementations§
Source§impl RootFinder for BisectionMethod
impl RootFinder for BisectionMethod
Auto Trait Implementations§
impl Freeze for BisectionMethod
impl RefUnwindSafe for BisectionMethod
impl Send for BisectionMethod
impl Sync for BisectionMethod
impl Unpin for BisectionMethod
impl UnwindSafe for BisectionMethod
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more