pub fn simplify_derivative(expr: TLExpr) -> TLExprExpand description
Basic algebraic simplification applied to derivative expressions.
Simplification rules:
0 + x → x,x + 0 → x0 * x → 0,x * 0 → 01 * x → x,x * 1 → xx - 0 → x0 - c → -c(constant folding for arithmetic negation form)0 / x → 0x ^ 0 → 1,x ^ 1 → x- constant folding for pure-constant arithmetic nodes