Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

matrix_log function

Logarithm of a square matrix.

How to write it

matrix_log(matrix)

matrix
A square matrix. Takes a matrix, written as a list of rows.

Examples

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

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

    Open in the solver