Documentation


QuadExpr.size()

size ( )

Retrieve the number of quadratic terms in the expression.

Return value:

Number of quadratic terms in the expression.

Example usage:

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