函数 det #

计算矩阵的行列式。

Syntax #

math.det(x)

Parameters #

Parameter Type Description
x Array | Matrix 一个矩阵

Returns #

Type Description
number x 的行列式

Throws #

Type | Description —- | ———–

Examples #

math.det([[1, 2], [3, 4]]) // returns -2

const A = [
  [-2, 2, 3],
  [-1, 1, 3],
  [2, 0, -1]
]
math.det(A) // returns 6

另请参阅 #

inv

Fork me on GitHub