Function reference · Linear algebra

determinant

Computes the determinant of a square matrix.

The determinant can contain symbolic entries as well as numbers. The direct helper works on a copy of the supplied Matrix, so computing the determinant does not mutate the original matrix.

A non-square matrix does not have a determinant and is rejected.

Examples

These examples use Nerdamer Notation.

Compute the determinant of a 2 by 2 matrix.

determinant(matrix([1,2],[3,4]))
// → -2

The determinant of an identity matrix is 1.

determinant(imatrix(3))
// → 1

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API · Direct API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

determinant(arg1)

nerdamer.determinant

Call the operation through the default nerdamer import.

nerdamer.determinant(M: Matrix): Expression

Parameters

NameTypeDescription
MMatrix

Returns

Expression

Browse the nerdamer API →

Direct JavaScript / TypeScript API

Import the operation directly from its package entry point.

import { determinant } from 'nerdamer/structures';
determinant(M: Matrix): Expression

Parameters

NameTypeDescription
MMatrix

Returns

Expression

Browse nerdamer/structures

← Back to Reference