Skip to content

sqrt

Square root.

Y = sqrt(X)

Returns X^(1/2). For negative real inputs, returns a complex result.

sqrt(16) % 4
sqrt(-1) % 1i
  • sqr — Square (X^2).
  • nthroot — Real n-th root of an array.
  • sqrtm — Matrix square root.
  • power — Element-wise exponentiation (function form of .^).