Skip to main content

evaluate_with_context

Function evaluate_with_context 

Source
pub fn evaluate_with_context(
    expr: &Expression,
    x: f64,
    context: &EvalContext<'_>,
) -> Result<EvalResult, EvalError>
Expand description

Evaluate an expression at a given value of x with an explicit evaluation context.

Convenience wrapper that allocates a new workspace.