Python | sympy.is_imaginary method Last Updated : 13 May, 2022 Comments Improve Suggest changes Like Article Like Report With the help of sympy.is_imaginary method, we can check whether element is imaginary or not this method will return the boolean value i.e True or False. Syntax : sympy.is_imaginary Return : Return True if imaginary else False. Example #1 : In this example we can see that by using sympy.is_imaginary method, we are able to check the imaginary value and it will return a boolean value. Python3 1=1 # import sympy from sympy import * # Use sympy.is_imaginary method gfg = simplify(2 * I).is_imaginary print(gfg) Output : True Example #2 : Python3 1=1 # import sympy from sympy import * # Use sympy.is_imaginary method gfg = simplify(5).is_imaginary print(gfg) Output : False Comment More infoAdvertise with us Next Article Python | sympy.is_imaginary method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads 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_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_algebraic method With the help of sympy.is_algebraic method, we can check whether element is algebraic or not this method will return the boolean value i.e True or False. Syntax : sympy.is_algebraic Return : Return True if algebraic else False. Example #1 : In this example we can see that by using sympy.is_algebraic 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_comparable() method With the help of sympy.is_comparable() method, we can compute the real number with precision and return True if computed value is real with precision by using sympy.is_comparable() method. Syntax : sympy.is_comparable() Return : Return boolean value if real number is computed. Example #1 : In this e 1 min read Like