matrix wise cosine inverse
t=acosm(x)
:x real or complex square matrix : :t real or complex square matrix :
t are cosine inverse of the x matrix. Diagonalization method is used. For nonsymmetric matrices result may be inaccurate.One has t=-%i*logm(x+%i*sqrtm(eye()-x*x))
A=[1,2;3,4];
`cosm`_(acosm(A))