pub fn classify(arena: &ExprArena, id: ExprId) -> ExprClassExpand description
Classify an expression as Linear, Quadratic (polynomial degree <= 2 with at least one degree-2 term), or Nonlinear (transcendentals, non-integer powers, or polynomial degree > 2).