sympy_expr = expr.to_sympy()
sympy_result = sympy_expr.is_polynomial(*[x for x in sympy_var])
return Symbol("True") if sympy_result else Symbol("False")
// Get a coefficient of form in an expression
def _coefficient(name, expr, form, n, evaluation):
After Change
sympy_expr = expr.to_sympy()
sympy_result = sympy_expr.is_polynomial(*[x for x in sympy_var])
return SymbolTrue if sympy_result else SymbolFalse
// Get a coefficient of form in an expression
def _coefficient(name, expr, form, n, evaluation):