cosm — matrix cosine function
t=cosm(x)
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))