pub struct TaylorExpand {
pub center: f64,
pub f0: f64,
pub f1: f64,
pub f2: f64,
pub f3: f64,
}Expand description
Stores the value of a function and its first three derivatives at a point, enabling Taylor polynomial evaluation.
Fields§
§center: f64The expansion center x₀.
f0: f64f(x₀).
f1: f64f'(x₀).
f2: f64f''(x₀) (second derivative).
f3: f64f'''(x₀) (third derivative).
Implementations§
Source§impl TaylorExpand
impl TaylorExpand
Sourcepub fn build<F>(f: F, x0: f64) -> Self
pub fn build<F>(f: F, x0: f64) -> Self
Build a TaylorExpand by numerically estimating derivatives via
forward-mode AD and central finite differences.
f1— exact via autodiff.f2— via central difference off'.f3— via central difference off''.
Trait Implementations§
Source§impl Clone for TaylorExpand
impl Clone for TaylorExpand
Source§fn clone(&self) -> TaylorExpand
fn clone(&self) -> TaylorExpand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TaylorExpand
impl RefUnwindSafe for TaylorExpand
impl Send for TaylorExpand
impl Sync for TaylorExpand
impl Unpin for TaylorExpand
impl UnsafeUnpin for TaylorExpand
impl UnwindSafe for TaylorExpand
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.