Function sqrtm #

Calculate the principal square root of a square matrix. The principal square root matrix X of another matrix A is such that X * X = A.

https://en.wikipedia.org/wiki/Square_root_of_a_matrix

Syntax #

math.sqrtm(A)

Parameters #

Parameter Type Description
A Array | Matrix The square matrix A

Returns #

Type Description
Array | Matrix The principal square root of matrix A

Throws #

Type | Description —- | ———–

Examples #

math.sqrtm([[33, 24], [48, 57]]) // returns [[5, 2], [4, 7]]

See also #

sqrt, pow

Fork me on GitHub