square root

The number that multiplied by itself gives a given number, found in Python with math.sqrt(x) or x ** 0.5.

In more detail

Both give a float. math.sqrt(-1) raises ValueError because negative numbers have no real square root.

Example

from math import sqrt
sqrt(2)

Related terms

Taught in

References