Algosim documentation: det

det

Determinant of a matrix.

Syntax

Description

If A is a square matrix, then det(A) is the determinant of A.

Examples

A ≔ ❨❨6, 3, 2, 1❩, ❨0, 1, 7, 5❩, ❨−2, 3, 5, 8❩, ❨7, 9, 0, 1❩❩
⎛ 6   3   2   1⎞
⎜ 0   1   7   5⎟
⎜−2   3   5   8⎟
⎝ 7   9   0   1⎠
det(A)
849
A ≔ RotationMatrix(π/6, ❨1, 2, −1❩)
⎛ 0.888354503154    0.24878234397   0.385919191095⎞
⎜−0.159465946493   0.955341801261   −0.24878234397⎟
⎝−0.430577389833   0.159465946493   0.888354503154⎠
det(A)
1
det(CirculantMatrix(SequenceVector(1000)))
−5.005⋅10^2999

See also