At My Fingertips

Documentation

Documentation

Function from library math

sqrt(x)

sqrtx

Returns the square root of the given number.

xnumber to compute the square root of

Square root of the provided number
Code
sqrt(4)
Result
2.0
Code
sqrt(2)
Result
1.4142135623730951

See also sqrt in the official documentation

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version 6ea4c91 (Wed, 05 Feb 2025 09:34:19 GMT)