Maths - Matrix algebra - Determinants 2D

Prerequisites

Determinants are explained here:

Description

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

det = m11 m22 - m12 m 21

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

Code

   // assumes matrix indices start from 0 (0 and 1)
   public double determinant() {
      double value =
      m00 * m11 - m01 * m10;
      return value;
   }

Further Information


metadata block
see also:
Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Developing Games in Java

Other Math Books

Terminology and Notation

Specific to this page here:

 

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

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