Python | sympy.is_integer method Last Updated : 13 May, 2022 Comments Improve Suggest changes Like Article Like Report 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, we are able to check the integer value and it will return a boolean value. Python3 1=1 # import sympy from sympy import * # Use sympy.is_integer method gfg = simplify(2).is_integer print(gfg) Output : True Example #2 : Python3 1=1 # import sympy from sympy import * # Use sympy.is_integer method gfg = simplify(5.5).is_integer print(gfg) Output : False Comment More infoAdvertise with us Next Article Python | sympy.is_integer method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.Integer() method With the help of sympy.Integer() method, we can convert the floating point to integer values and this method very efficient in term of memory if we want to save integer value. Syntax : sympy.Integer() Return : Return integer value. Example #1 : In this example we can see that by using sympy.Integer( 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 IntegerPartition() method With the help of sympy.combinatorics.partitions.IntegerPartition() method, we can get the elements in an array of subarrays that is passed as parameters in sympy.combinatorics.Partition().rank method. Syntax : sympy.combinatorics.partitions.IntegerPartition() Return : Return the partition of integer 1 min read Python | sympy.is_imaginary method 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 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 Like