Function: matfunc - function of a matrix
Calling sequence:
matfunc(A,f);
Parameters:
A - a square matrix.
f - a function or expression in one variable.
Description:
Examples:
> A:= matrix([[11,3],[5,3]]);
Find a square root of A .
> B:= matfunc(A,sqrt);
Check that it works:
> map(normal,evalm(B^2));
Find a logarithm of A .
> matfunc(A,ln);
> map(simplify,linalg[exponential](%));
A matrix whose characteristic polynomial is an irreducible quintic:
> A:= linalg[companion](x^5 + x^4 -2* x^2 + 1,x);
> matfunc(A,sqrt);
A floating-point example.
> Af:= matrix([[0, 0, 36.], [1, 0, -49.], [0, 1, 14.]]);
> Bf:=matfunc(Af,sqrt);
> evalm(Bf^2);
See also: eigenvalues , exponential , linalg
Maple Advisor Database R. Israel 1999