pub struct SeriesMethods;Expand description
Series expansion methods and utilities
Implementations§
Source§impl SeriesMethods
impl SeriesMethods
Sourcepub fn factorial(n: u32) -> Expression
pub fn factorial(n: u32) -> Expression
Compute factorial
Sourcepub fn binomial_coefficient(n: u32, k: u32) -> Expression
pub fn binomial_coefficient(n: u32, k: u32) -> Expression
Compute binomial coefficient
Sourcepub fn known_series(
function_name: &str,
variable: &Symbol,
point: &Expression,
order: u32,
) -> Option<Expression>
pub fn known_series( function_name: &str, variable: &Symbol, point: &Expression, order: u32, ) -> Option<Expression>
Get known series expansion for common functions
Sourcepub fn general_taylor_series(
expr: &Expression,
variable: &Symbol,
point: &Expression,
order: u32,
) -> Expression
pub fn general_taylor_series( expr: &Expression, variable: &Symbol, point: &Expression, order: u32, ) -> Expression
Compute general Taylor series using derivatives
Taylor series: f(x) = Σ [f^(n)(a) / n!] * (x-a)^n
For noncommutative expressions, order is preserved:
- Derivative f^(n)(a) comes first
- Power (x-a)^n comes second
- Division by n! comes last
Sourcepub fn evaluate_at_point(
expr: &Expression,
variable: &Symbol,
point: &Expression,
) -> Expression
pub fn evaluate_at_point( expr: &Expression, variable: &Symbol, point: &Expression, ) -> Expression
Evaluate expression at a specific point
Auto Trait Implementations§
impl Freeze for SeriesMethods
impl RefUnwindSafe for SeriesMethods
impl Send for SeriesMethods
impl Sync for SeriesMethods
impl Unpin for SeriesMethods
impl UnwindSafe for SeriesMethods
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> 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