Maths - Matrix algebra - Determinants 3D (original) (raw)

Prerequisites

Determinants are explained here:

Description

The value of the determinant for a 3×3 matrix is:

det = m11 m22 m33 + m12 m23 m31 + m13 m21 m32 - m11 m23 m32 - m12 m 21 m33 - m13 m22 m31

The following calculator allows you to calculate the determinant for a 3×3 matrix. Enter the values into the matrix and then press "calc det ->" to display the result:

Code

// assumes matrix indices start from 0 (0,1 and 2) public double determinant() { double value = m00m11m22 + m01m12m20 + m02m10m21 - m00m12m21 - m01m10m22 - m02m11m20; return value; }

Further Information

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.