Trait mexprp::Func [] [src]

pub trait Func<N: Num> {
    fn eval(&self, args: &[Term<N>], ctx: &Context<N>) -> Calculation<N>;
}

Implemented by functions defined in a context

Required Methods

Evaluate the function in this context with the given arguments. When implementing, simply evaluate the arguments with the context and return an Err(MathError::IncorrectArguments) if there are too many or too few.

Implementors