Enum cycle::Expr[][src]

pub enum Expr {
    Sym(Arc<Symbol>),
    Cte(Constant),
    Num(Number),
    Alg(Algebra),
    Fun(Function),
}

Variants

Sym(Arc<Symbol>)

Symbol (variable) on a ring

Special constant

Num(Number)

Exact number

Alg(Algebra)

Algebraic

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]

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]

impl PartialEq<Expr> for Expr[src]

impl PartialOrd<Expr> for Expr[src]

impl StructuralEq for Expr[src]

impl StructuralPartialEq for Expr[src]

impl Sub<Expr> for Expr[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, o: Self) -> Self[src]

a - b = a + (-b)

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.