WLJS LogoWLJS Notebook

MatrixFunction

MatrixFunction[f, m] gives the matrix generated by the scalar function f at the matrix argument m.

Examples

Matrix sine:

MatrixFunction[Sin, {{0, 1}, {-1, 0}}]

Apply exponential:

MatrixFunction[Exp, {{1, 0}, {0, 2}}]
(* {{E, 0}, {0, E^2}} *)

Please visit the official Wolfram Language Reference for more details.

On this page