Python | sympy.is_real method Last Updated : 13 May, 2022 Comments Improve Suggest changes Like Article Like Report 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 check the real value and it will return a boolean value. Python3 1=1 # import sympy from sympy import * # Use sympy.is_real method gfg = simplify(2).is_real print(gfg) Output : True Example #2 : Python3 1=1 # import sympy from sympy import * # Use sympy.is_real method gfg = simplify(5.5).is_real print(gfg) Output : True Comment More infoAdvertise with us Next Article Python | sympy.is_real method J jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.is_rational method With the help of sympy.is_rational method, we can check whether the element is rational or not this method will return the boolean value i.e True or False. Syntax : sympy.is_rational Return : Return True if rational else False. Example #1: In this example, we can see that by using sympy.is_rational 1 min read Python | sympy.as_real_imag() method With the help of sympy.as_real_imag() method, we can get the tuple in which we have first value is real and another value is imaginary by using sympy.as_real_imag() method. Syntax : sympy.as_real_imag() Return : Return a tuple having both real and imaginary value. Example #1 : In this example we can 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.Rational() method With the help of sympy.Rational() method, we can find the rational form of any float value that is passed as parameter in sympy.Rational() method. Syntax : sympy.Rational(val) Return : Return Rational form of float value. Example #1 : In this example we can see that by using sympy.Rational() method, 1 min read Python | sympy Relational() method With the help of sympy.core.relational.Relational() method, we are going make the relations between two variables and constants by using sympy.core.relational.Relational() method. Syntax : sympy.core.relational.Relational(var1, var2, "rel") Return : Return a relationship between two variables. Examp 1 min read Like