Try this,
[MATH]M(x)←mat(x^2;1-x;x;x^3+e^x;2;2)[/MATH]
[MATH]r←rows(M(x))[/MATH]
[MATH]c←cols(M(x))[/MATH]
[MATH]for(i;range(1;r);for(j;range(1;c);el(dM;i;j)←diff(el(M(x);i;j);x)))[/MATH]
[MATH]Mprime(x)←dM[/MATH]
[MATH]Mprime(x)—mat(2*x;-1;1;3*x^2+e^x;2;2)[/MATH]
[MATH]Mprime(2)=mat(4;-1;1;19,3891;2;2)[/MATH]
Try with a matrix function M(x) with more rows and columns.
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"