Wilang Documentation1.0.0+4

det#

Calculate the determinant of a matrix

Available in: math cells, REPL.

Syntax#

det(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 (number).

Example#

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

Example
det([1, 2; 3, 4])

Expected result: -2.

See also#

concat · diag · identity · inv · ones · range · size · squeeze · subset · trace · transpose · zeros

All functions · Math guides