Skip to main content

sqrt

sqrt (num)

The sqrt function returns the square root of num or NaN if num is negative.

In complex expressions, num is complex, and sqrt(num) returns the complex value x + iy.