pub struct ImplicitCurveAnalysis;Expand description
Implicit curve analysis
Implementations§
Source§impl ImplicitCurveAnalysis
impl ImplicitCurveAnalysis
Sourcepub fn critical_points(
curve: &Expression,
x_var: Symbol,
y_var: Symbol,
) -> Vec<(Expression, Expression)>
pub fn critical_points( curve: &Expression, x_var: Symbol, y_var: Symbol, ) -> Vec<(Expression, Expression)>
Find critical points of implicitly defined curves
§Examples
use mathhook_core::{expr, symbol};
use mathhook_core::calculus::derivatives::ImplicitCurveAnalysis;
let x = symbol!(x);
let y = symbol!(y);
let curve = expr!((x^2) + (y^2));
let critical_points = ImplicitCurveAnalysis::critical_points(&curve, x, y);Sourcepub fn concavity(curve: &Expression, x_var: Symbol, y_var: Symbol) -> Expression
pub fn concavity(curve: &Expression, x_var: Symbol, y_var: Symbol) -> Expression
Analyze concavity of implicit curves
§Examples
use mathhook_core::{expr, symbol};
use mathhook_core::calculus::derivatives::ImplicitCurveAnalysis;
let x = symbol!(x);
let y = symbol!(y);
let curve = expr!(x^2);
let concavity = ImplicitCurveAnalysis::concavity(&curve, x, y);Auto Trait Implementations§
impl Freeze for ImplicitCurveAnalysis
impl RefUnwindSafe for ImplicitCurveAnalysis
impl Send for ImplicitCurveAnalysis
impl Sync for ImplicitCurveAnalysis
impl Unpin for ImplicitCurveAnalysis
impl UnwindSafe for ImplicitCurveAnalysis
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