QuadExpr.size()


QuadExpr.size()

size ( )

Retrieve the number of quadratic terms in the expression.

Return value:

Number of quadratic terms in the expression.

Example usage:

  e = x * x + 2 * y * y + z
  print(e.size())