sqrt

Purpose

Square root.

Synopsis

Y = sqrt(X)

Description

sqrt(X) is the square root of the elements of X. For the elements of X that are negative or complex, sqrt(X) produces complex results.

See sqrtm for the matrix square root.

Examples

sqrt((-2:2)')
          
ans =
      0 + 1.4142i
      0 + 1.0000i
      0
 1.0000
 1.4142

See Also

exp, log, sqrtm

(c) Copyright 1994 by The MathWorks, Inc.