powered by
Returns the square root of a diagonalizable matrix.
matsqrt(x)
matsqrt returns the square root of x.
matsqrt
x
An nxn diagonalizable matrix.
This function is called by regcr.
regcr
a <- matrix(c(1, -0.2, -0.2, 1), 2, 2) matsqrt(a)
Run the code above in your browser using DataLab