pub enum Pattern<F: IntegrateFloat> {
SumOfSquares(Box<SymbolicExpression<F>>, Box<SymbolicExpression<F>>),
DifferenceOfSquares(Box<SymbolicExpression<F>>, Box<SymbolicExpression<F>>),
PythagoreanIdentity(Box<SymbolicExpression<F>>),
EulerFormula(Box<SymbolicExpression<F>>),
}Expand description
Common mathematical patterns
Variants§
SumOfSquares(Box<SymbolicExpression<F>>, Box<SymbolicExpression<F>>)
a^2 + b^2
DifferenceOfSquares(Box<SymbolicExpression<F>>, Box<SymbolicExpression<F>>)
a^2 - b^2
PythagoreanIdentity(Box<SymbolicExpression<F>>)
sin^2(x) + cos^2(x) = 1
EulerFormula(Box<SymbolicExpression<F>>)
e^(ix) = cos(x) + isin(x) (Euler’s formula)
Trait Implementations§
impl<F: IntegrateFloat> StructuralPartialEq for Pattern<F>
Auto Trait Implementations§
impl<F> Freeze for Pattern<F>
impl<F> RefUnwindSafe for Pattern<F>where
F: RefUnwindSafe,
impl<F> Send for Pattern<F>where
F: Send,
impl<F> Sync for Pattern<F>where
F: Sync,
impl<F> Unpin for Pattern<F>
impl<F> UnwindSafe for Pattern<F>where
F: UnwindSafe,
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<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