Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

matrix_function function

A function of a square matrix.

How to write it

matrix_function(f, matrix)

f
The function, such as exp. Takes a function.
matrix
A square matrix. Takes a matrix, written as a list of rows.

Examples

  • matrix_function⁡(exp⁡,(0000))=(1001)\displaystyle \operatorname{matrix\_function}\left(\exp, \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}\right) = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}
    matrix_function(exp, [[0, 0], [0, 0]])

    In the solver, matrix_function(exp, [[0, 0], [0, 0]]) gives [[1, 0], [0, 1]].

    Open in the solver