pub struct LimitMethods;Expand description
Limit computation methods and techniques
Implementations§
Source§impl LimitMethods
impl LimitMethods
Sourcepub fn lhopital_rule(
numerator: &Expression,
denominator: &Expression,
variable: &Symbol,
point: &Expression,
) -> Expression
pub fn lhopital_rule( numerator: &Expression, denominator: &Expression, variable: &Symbol, point: &Expression, ) -> Expression
Apply L’Hôpital’s rule for indeterminate forms
For indeterminate forms 0/0 or ∞/∞: lim[x→a] f(x)/g(x) = lim[x→a] f’(x)/g’(x)
Order is preserved for noncommutative expressions. Applies L’Hôpital’s rule recursively up to 5 times if needed.
Sourcepub fn lhopital_rule_at_infinity(
numerator: &Expression,
denominator: &Expression,
variable: &Symbol,
) -> Expression
pub fn lhopital_rule_at_infinity( numerator: &Expression, denominator: &Expression, variable: &Symbol, ) -> Expression
Apply L’Hôpital’s rule for limits at infinity
For indeterminate forms ∞/∞ as x→∞: lim[x→∞] f(x)/g(x) = lim[x→∞] f’(x)/g’(x)
Sourcepub fn polynomial_limit(
expr: &Expression,
variable: &Symbol,
point: &Expression,
) -> Expression
pub fn polynomial_limit( expr: &Expression, variable: &Symbol, point: &Expression, ) -> Expression
Compute polynomial limit
Sourcepub fn rational_limit_at_infinity(
numerator: &Expression,
denominator: &Expression,
variable: &Symbol,
) -> Expression
pub fn rational_limit_at_infinity( numerator: &Expression, denominator: &Expression, variable: &Symbol, ) -> Expression
Compute rational function limit at infinity
Handles cases like ln(x)/x where degree-based analysis doesn’t work
Sourcepub fn rational_limit(
numerator: &Expression,
denominator: &Expression,
variable: &Symbol,
point: &Expression,
) -> Expression
pub fn rational_limit( numerator: &Expression, denominator: &Expression, variable: &Symbol, point: &Expression, ) -> Expression
Compute rational function limit
Sourcepub fn trigonometric_limit(
expr: &Expression,
variable: &Symbol,
point: &Expression,
) -> Expression
pub fn trigonometric_limit( expr: &Expression, variable: &Symbol, point: &Expression, ) -> Expression
Compute trigonometric limits
Sourcepub fn substitute_and_evaluate(
expr: &Expression,
variable: &Symbol,
point: &Expression,
) -> Expression
pub fn substitute_and_evaluate( expr: &Expression, variable: &Symbol, point: &Expression, ) -> Expression
Substitute variable with point and evaluate
Sourcepub fn is_indeterminate_form(
expr: &Expression,
variable: &Symbol,
point: &Expression,
) -> bool
pub fn is_indeterminate_form( expr: &Expression, variable: &Symbol, point: &Expression, ) -> bool
Check for indeterminate forms
Sourcepub fn is_infinite(expr: &Expression) -> bool
pub fn is_infinite(expr: &Expression) -> bool
Check if expression represents infinity
Auto Trait Implementations§
impl Freeze for LimitMethods
impl RefUnwindSafe for LimitMethods
impl Send for LimitMethods
impl Sync for LimitMethods
impl Unpin for LimitMethods
impl UnwindSafe for LimitMethods
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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