matrix cosine function
t=cosm(x)
:x real or complex square matrix :
cosm(x) is the matrix cosine of the x matrix. t=0.5*(expm(%i*x)+expm(-%i*x)).
A=[1,2;3,4] cosm(A)-0.5*(`expm`_(%i*A)+`expm`_(-%i*A))
Enter search terms or a module, class or function name.