Skip to content

Determinant ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.

Determinant of a square matrix.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageDet✓
Determinant(matrix) -> numberas compute-engine declares it
SageMathmatrix(matrix).det()
Typed signatures
TypePackageApplies
(matrix) -> numbercompute-enginealways

Domain: Compute engine

Examples

Basic #

Equal columns make the determinant vanish, even symbolically

live ↗
Indet⁡([[a1,a1],[a2,a2]])\det\left(\bigl\lbrack\bigl\lbrack a_1, a_1\bigr\rbrack, \bigl\lbrack a_2, a_2\bigr\rbrack\bigr\rbrack\right)Out00

A singular classic: rows in arithmetic progression give 0

live ↗
Indet⁡([[1,2,3],[4,5,6],[7,8,9]])\det\left(\bigl\lbrack\bigl\lbrack1, 2, 3\bigr\rbrack, \bigl\lbrack4, 5, 6\bigr\rbrack, \bigl\lbrack7, 8, 9\bigr\rbrack\bigr\rbrack\right)Out00
Scope #

Complex and symbolic entries mix freely

live ↗
Indet⁡([[1+i,2,3−2i],[0,4π,5i],[3,0,6]])\det\left(\bigl\lbrack\bigl\lbrack1+i, 2, 3-2i\bigr\rbrack, \bigl\lbrack0, 4π, 5i\bigr\rbrack, \bigl\lbrack3, 0, 6\bigr\rbrack\bigr\rbrack\right)Out30i+(−12+48i)π30i+(-12+48i)π

An exact integer 3×33\times3 determinant

live ↗
Indet⁡([[1,2,4],[5,4,5],[9,2,7]])\det\left(\bigl\lbrack\bigl\lbrack1, 2, 4\bigr\rbrack, \bigl\lbrack5, 4, 5\bigr\rbrack, \bigl\lbrack9, 2, 7\bigr\rbrack\bigr\rbrack\right)Out−66-66
live ↗
Indet⁡([[a,b,c],[d,m,f],[g,h,k]])\det\left(\bigl\lbrack\bigl\lbrack a, b, c\bigr\rbrack, \bigl\lbrack d, m, f\bigr\rbrack, \bigl\lbrack g, h, k\bigr\rbrack\bigr\rbrack\right)Outbfg+cdh−afh−bdk−cgm+akmbfg+cdh-afh-bdk-cgm+akm
live ↗
Indet⁡(IdentityMatrix(22))\det\left(\mathrm{IdentityMatrix}(22)\right)Out11
Applications #

Swapping sign: −det⁡A-\det A is 44 here

live ↗
In−det⁡([[1,3,4],[5,7,8],[5,2,1]])-\det\left(\bigl\lbrack\bigl\lbrack1, 3, 4\bigr\rbrack, \bigl\lbrack5, 7, 8\bigr\rbrack, \bigl\lbrack5, 2, 1\bigr\rbrack\bigr\rbrack\right)Out44
About
Examples7
Checked againstWolfram Language 7 agreeSageMath 6 agree
CrosswalkWolfram LanguageSageMath

Implementation

mappedsagepackages/oracle/src/mappings.ts