pub enum FiniteDiffMethod {
Forward,
Central,
}Expand description
Finite difference method for numerical differentiation.
Variants§
Forward
Forward differences: (f(x+ε) - f(x)) / ε — O(ε) error.
Central
Central differences: (f(x+ε) - f(x-ε)) / (2ε) — O(ε²) error, more accurate.
Trait Implementations§
Source§impl Clone for FiniteDiffMethod
impl Clone for FiniteDiffMethod
Source§fn clone(&self) -> FiniteDiffMethod
fn clone(&self) -> FiniteDiffMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FiniteDiffMethod
impl Debug for FiniteDiffMethod
Source§impl PartialEq for FiniteDiffMethod
impl PartialEq for FiniteDiffMethod
impl Copy for FiniteDiffMethod
impl Eq for FiniteDiffMethod
impl StructuralPartialEq for FiniteDiffMethod
Auto Trait Implementations§
impl Freeze for FiniteDiffMethod
impl RefUnwindSafe for FiniteDiffMethod
impl Send for FiniteDiffMethod
impl Sync for FiniteDiffMethod
impl Unpin for FiniteDiffMethod
impl UnsafeUnpin for FiniteDiffMethod
impl UnwindSafe for FiniteDiffMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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