Python | sympy.is_number method Last Updated : 26 Jul, 2019 Comments Improve Suggest changes Like Article Like Report 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 sympy.is_number() method, we are able to detect the number by getting boolean value. Python3 1=1 # import sympy from sympy import * x, y = symbols('x y') # Use sympy.is_number method gfg = cos(2).is_number print(gfg) Output : True Example #2 : Python3 1=1 # import sympy from sympy import * x, y = symbols('x y') # Use sympy.is_number method gfg = sin(x).is_number print(gfg) Output : False Comment More infoAdvertise with us Next Article Python | sympy.is_number method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads 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_polynomial() method 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 1 min read Python | sympy.has() method With the help of sympy.has() method, we can check if variable is used in that mathematical expression or not and this will return a boolean values by using sympy.has() method. Syntax : sympy.has(variable) Return : Return boolean value i.e True or False. Example #1 : In this example we can see that b 1 min read Python | sympy.digits() method With the help of sympy.digits() method, we can find the digits of a given integer in any given base in SymPy. Syntax: digits(n, t=10) Parameter: n - It denotes an integer. b - It denotes an base integer(optional). Default for b is 10. Returns: Returns a list of the digits of n in base b. The first e 2 min read Python | sympy.is_real method With the help of sympy.is_real method, we can check whether element is real or not this method will return the boolean value i.e True or False. Syntax : sympy.is_real Return : Return True if real else False. Example #1 : In this example we can see that by using sympy.is_real method, we are able to c 1 min read Like