Python | sympy.is_constant() method Last Updated : 26 Jul, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.is_constant() method, we can check if element is constant or not and it will return a boolean value if found constant by using sympy.is_constant() method. Syntax : sympy.is_constant() Return : Return a boolean value if constant is found. Example #1 : In this example we can see that by using sympy.is_constant() method, we are able to detect the constant by getting boolean value. Python3 1=1 # import sympy from sympy import * x, y = symbols('x y') # Use sympy.is_constant() method gfg = simplify(2).is_constant() 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_constant() method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.is_composite method With the help of sympy.is_composite method, we can check whether element is composite or not this method will return the boolean value i.e True or False. Syntax : sympy.is_composite Return : Return True if composite else False. Example #1 : In this example we can see that by using sympy.is_composite 1 min read Python | sympy is_collinear() method The function is_collinear() enables us to check whether the given points(coordinates) are collinear or not. Syntax: Parameters: x, y, z are coordinates. Return: True : if points are collinear, otherwise False. Example #1: Python3 # import sympy and geometry module from sympy import * from sympy.geom 1 min read Python | sympy.is_even() method In the sympy module, we can test whether a given number n is even or not using sympy.is_even() function. Syntax: sympy.is_even(n) Parameter: n; number to be tested Return: bool value result Code #1: Python3 # Python program to check even number # using sympy.is_even() method # importing sympy module 1 min read Python | sympy.is_integer method With the help of sympy.is_integer method, we can check whether element is integer or not this method will return the boolean value i.e True or False. Syntax : sympy.is_integer Return : Return True if integer else False. Example #1 : In this example we can see that by using sympy.is_integer method, w 1 min read Python | sympy.is_complex method With the help of sympy.is_complex method, we can check whether element is complex or not this method will return the boolean value i.e True or False. Syntax : sympy.is_complex Return : Return True if complex else False. Example #1 : In this example we can see that by using sympy.is_complex method, w 1 min read Like