Enum cycle::Expr [−][src]
Variants
Symbol (variable) on a ring
Cte(Constant)
Special constant
Num(Number)
Exact number
Algebraic
Fun(Function)
Functional (elementary, special)
Implementations
impl Expr
[src]
pub fn fact(self) -> Self
[src]
a!
pub fn pow(self, o: Self) -> Self
[src]
a^b
pub fn root(self, o: Self) -> Self
[src]
b√a
pub fn sqrt(self) -> Self
[src]
√a
impl Expr
[src]
pub fn sin(self) -> Self
[src]
sin(x)
pub fn cos(self) -> Self
[src]
cos(x)
pub fn tan(self) -> Self
[src]
tan(x)
pub fn arcsin(self) -> Self
[src]
arcsin(x)
pub fn arccos(self) -> Self
[src]
arccos(x)
pub fn arctan(self) -> Self
[src]
arctan(x)
pub fn sinh(self) -> Self
[src]
sinh(x)
pub fn cosh(self) -> Self
[src]
cosh(x)
pub fn tanh(self) -> Self
[src]
tanh(x)
pub fn arsinh(self) -> Self
[src]
arsinh(x)
pub fn arcosh(self) -> Self
[src]
arcosh(x)
pub fn artanh(self) -> Self
[src]
artanh(x)
pub fn exp(self) -> Self
[src]
exp(x)
pub fn log(self) -> Self
[src]
log(x)
pub fn map(map_str: &str, arg: Vec<Expr>) -> Self
[src]
map(x_1, ..., x_n)
impl Expr
[src]
pub const ZERO: Expr
[src]
pub const ONE: Expr
[src]
pub const NEG_ONE: Expr
[src]
pub const HALF: Expr
[src]
pub const QUARTER: Expr
[src]
pub fn trivial(self) -> SymbolicResult<Expr>
[src]
pub fn len(&self) -> u64
[src]
pub fn dom(&self) -> Set
[src]
pub fn free(&self, o: &Expr) -> bool
[src]
pub fn subs(&self, m: &Expr, s: &Expr) -> Expr
[src]
pub fn is_leaf(&self) -> bool
[src]
pub fn iter(&self) -> Iter<'_>
[src]
Trait Implementations
impl Add<Expr> for Expr
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, o: Self) -> Self
[src]
a + b
impl Clone for Expr
[src]
impl Debug for Expr
[src]
impl Display for Expr
[src]
impl Div<Expr> for Expr
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, o: Self) -> Self
[src]
a/b = a * b^-1
impl Eq for Expr
[src]
impl Hash for Expr
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<Expr> for Expr
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, o: Self) -> Self
[src]
a*b
impl Neg for Expr
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self
[src]
-a = (-1)*a
impl Ord for Expr
[src]
fn cmp(&self, o: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Expr> for Expr
[src]
impl PartialOrd<Expr> for Expr
[src]
fn partial_cmp(&self, o: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Expr
[src]
impl StructuralPartialEq for Expr
[src]
impl Sub<Expr> for Expr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,