Skip to main content

classify

Function classify 

Source
pub fn classify(arena: &ExprArena, id: ExprId) -> ExprClass
Expand 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).