Wilang Documentation1.0.0+4

eigs#

Calculate the eigenvalues and optionally eigenvectors of a square matrix

Available in: math cells, REPL.

Syntax#

eigs(x)

Arguments and behavior#

For matrices, dimensions must match the operation. Singular matrices or incompatible shapes can fail. Cell indexing starts at 1. The example returns scalar (unknown).

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
eigs([[2,0],[0,3]])

Expected result: {"values": [2, 3], "eigenvectors": [{"value": 2, "vector": [1, 0]}, {"value": 3, "vector": [0, 1]}]}.

See also#

inv

All functions · Math guides