Python | sympy.sqrt() method Last Updated : 04 Jul, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.sqrt() method, we can find the square root of any value in terms of values and also in terms of symbolically simplified mathematical expression. Syntax: sqrt(val) Parameters: val – It is the value on which square root operation is to be performed. Returns: Returns square root in terms of values and symbolically simplified mathematical expression corresponding to the input expression. Example #1: Python3 1== # import sympy from sympy import * val = 256 print("Value : {}".format(val)) # Use sympy.sqrt() method sqrt_val = sqrt(val) print("Square root of value : {}".format(sqrt_val)) Output: Value : 256 Square root of value : 16 Example #2: Python3 1== # import sympy from sympy import * val = 8 print("Value : {}".format(val)) # Use sympy.sqrt() method sqrt_val = sqrt(val) print("Square root of value : {}".format(sqrt_val)) Output: Value : 8 Square root of value : 2*sqrt(2) Comment More infoAdvertise with us Next Article Python | sympy.sqrt() method R rupesh_rao Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.sin() method In sympy, the sin() method is a sine function. Using the sin(x) method in the sympy module, we can compute the sine of x. Syntax : sympy.sin(x) Return : Returns the sine of x Code #1: Below is the example using the sin() method to find the sine function. Python3 # importing sympy library from sympy 1 min read Python | sympy.sec() method With the help of sympy.sec() method, we are able to find the value of sec theta using sympy.sec() function. Syntax : sympy.sec() Return : Return value of sec theta. Example #1 : In this example we can see that by using sympy.sec() method, we can find the value of sec theta. Python3 1=1 # import symp 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.csc() method With the help of sympy.csc() method, we are able to find the value of cosine theta using sympy.csc() function. Syntax : sympy.csc() Return : Return value of cosine theta. Example #1 : In this example we can see that by using sympy.csc() method, we can find the value of cosine theta. Python3 1=1 # im 1 min read Python | sympy.Pow() method With the help of sympy.Pow() method, we can find a raised to the power of b where a and b are parameters to the method. Syntax: Pow(a, b) Parameter: a - It denotes an integer. b - It denotes an integer. Returns: Returns an integer which is equal to a raised to the power of b, i. e., a^b. Example #1: 1 min read Like