pub enum RootError {
ZeroDerivative {
x_cur: f64,
},
IteratedToNaN {
x_new: f64,
},
IterationLimit {
last_x: f64,
},
}Expand description
Root finding error conditions.
To help with diagnostics, these errors typically return the last relevant
x position.
Variants§
ZeroDerivative
Derivative went to zero for method that depends on it to determine next step.
IteratedToNaN
The solver computed a NaN for its next step x-value.
IterationLimit
Iteration limit was reached.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootError
impl RefUnwindSafe for RootError
impl Send for RootError
impl Sync for RootError
impl Unpin for RootError
impl UnwindSafe for RootError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more