pub struct Newton { /* private fields */ }Expand description
Newton-Raphson method for root-finding (requires derivative).
Trait Implementations§
Source§impl<F, D> FindRootWithDerivative<F, D> for Newton
impl<F, D> FindRootWithDerivative<F, D> for Newton
Source§fn find_with_derivative(
&self,
f: F,
derivative: D,
initial_guess: f64,
) -> Result<f64, RootFinderError>
fn find_with_derivative( &self, f: F, derivative: D, initial_guess: f64, ) -> Result<f64, RootFinderError>
Finds a root of
f using derivative, starting from initial_guess.impl Copy for Newton
impl StructuralPartialEq for Newton
Auto Trait Implementations§
impl Freeze for Newton
impl RefUnwindSafe for Newton
impl Send for Newton
impl Sync for Newton
impl Unpin for Newton
impl UnsafeUnpin for Newton
impl UnwindSafe for Newton
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