Python | sympy.is_polynomial() method Last Updated : 26 Jul, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.is_polynomial() method, we can check if polynomial is found it will return True as boolean value by using sympy.is_polynomial() method. Syntax : sympy.is_polynomial() Return : Return a boolean value if polynomial is found. Example #1 : In this example we can see that by using sympy.is_polynomial() method, we are able to detect the polynomial by getting boolean value. Python3 1=1 # import sympy from sympy import * x, y = symbols('x y') # Use sympy.is_polynomial() method gfg = simplify(x**2 + 2 * y*x + y**2).is_polynomial() print(gfg) Output : True Example #2 : Python3 1=1 # import sympy from sympy import * x, y = symbols('x y') # Use sympy.is_constant() method gfg = simplify(sin(x)).is_constant() print(gfg) Output : False Comment More infoAdvertise with us Next Article Python | sympy.is_polynomial() method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.as_poly() method With the help of sympy.as_poly() method, we can make the mathematical function into a polynomial object by using sympy.as_poly() method. Syntax : sympy.as_poly() Return : Return the polynomial object. Example #1 : In this example we can see that by using sympy.as_poly() method, we are able to get th 1 min read Python | sympy.is_nonzero() method In sympy module, we can test whether a given number n is nonzero or not using sympy.is_nonzero() function. Syntax: sympy.is_nonzero(n) Parameter: n; number to be tested Return: bool value result Code #1: Python3 # Python program to check nonzero # using sympy.is_nonzero() method # importing sympy mo 1 min read Python | sympy.is_nonpositive() method In simpy module, we can test whether a given number n is non-positive or not using sympy.is_nonpositive() function Syntax: sympy.is_nonpositive(n) Parameter: n; number to be tested Return: bool value result Code #1: Python3 # Python program to check non-positive number # using sympy.is_nonpositive() 1 min read Python | sympy.is_number method With the help of sympy.is_number method, we can check if element is number or not and it will return a boolean value if number is found by using sympy.is_number method. Syntax : sympy.is_number Return : Return a boolean value if number is found. Example #1 : In this example we can see that by using 1 min read Python â Sympy Polygon.is_convex() Method In Sympy, the function Polygon.is_convex() is used to check whether the given polygon is convex or not. A polygon is said to be convex if all its interior angles are less than 180 degrees and there are no intersections between the sides. Syntax: Polygon.is_convex() Returns: True: True if this polygo 1 min read Like