Skip to main content

diff_cas

Function diff_cas 

Source
pub fn diff_cas(cx: &mut Cx, expr: &CasExpr, var: &Symbol) -> Result<CasExpr>
Expand description

Differentiate a CasExpr with respect to var, returning a simplified derivative tree.

Builtin operators (+, -, *, /, ^, and the standard trig functions) use their hard-coded rules; unrecognized operators fall through to the extensible differentiation-rule registry.