pub struct ParametricCurveAnalysis;Expand description
Parametric curve analysis
Implementations§
Source§impl ParametricCurveAnalysis
impl ParametricCurveAnalysis
Sourcepub fn critical_points(
x_param: &Expression,
y_param: &Expression,
parameter: Symbol,
) -> Vec<Expression>
pub fn critical_points( x_param: &Expression, y_param: &Expression, parameter: Symbol, ) -> Vec<Expression>
Find critical points where dy/dx = 0 or undefined
§Examples
use mathhook_core::{Expression};
use mathhook_core::symbol;
use mathhook_core::calculus::derivatives::ParametricCurveAnalysis;
let t = symbol!(t);
let x_param = Expression::pow(Expression::symbol(t.clone()), Expression::integer(2));
let y_param = Expression::pow(Expression::symbol(t.clone()), Expression::integer(3));
let critical_t = ParametricCurveAnalysis::critical_points(&x_param, &y_param, t);Sourcepub fn tangent_vector(
x_param: &Expression,
y_param: &Expression,
parameter: Symbol,
) -> (Expression, Expression)
pub fn tangent_vector( x_param: &Expression, y_param: &Expression, parameter: Symbol, ) -> (Expression, Expression)
Analyze tangent vector at parameter value
§Examples
use mathhook_core::{Expression};
use mathhook_core::symbol;
use mathhook_core::calculus::derivatives::ParametricCurveAnalysis;
let t = symbol!(t);
let x_param = Expression::symbol(t.clone());
let y_param = Expression::pow(Expression::symbol(t.clone()), Expression::integer(2));
let tangent = ParametricCurveAnalysis::tangent_vector(&x_param, &y_param, t);Auto Trait Implementations§
impl Freeze for ParametricCurveAnalysis
impl RefUnwindSafe for ParametricCurveAnalysis
impl Send for ParametricCurveAnalysis
impl Sync for ParametricCurveAnalysis
impl Unpin for ParametricCurveAnalysis
impl UnsafeUnpin for ParametricCurveAnalysis
impl UnwindSafe for ParametricCurveAnalysis
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