sqrtm
- :
X =sqrtm(A)¶ - :
[X, resnorm] =sqrtm(A)¶ - :
[X, alpha, condest] =sqrtm(A)¶ Principal square root of the square matrix A.
The root is computed from the complex Schur form of A by the Bjorck-Hammarling recurrence. It is real whenever A is real and has no eigenvalue on the negative real axis. resnorm is the relative residual
norm (A - X^2, "fro") / norm (A, "fro"), alpha the stability factornorm (X, "fro")^2 / norm (A, "fro")and condest an estimate of the condition number of the root.If A has no square root a warning is issued and the result is filled with NaN.