Determinant of 2-by-2 matrices
Jun 5, 2008
The determinant of 2x2 matrices is defined as follows:

And the code cannot be simpler,
<script type="text/javascript"> /* parameter m is 2-by-2 matrix */ function det2x2(m) { return( ( m[0][0] * m[1][1] ) - ( m[0][1] * m[1][0] ) ); } </script>
Keywords: determinant, 2-by-2 matrices, matrix, script
Share:
Save to del.icio.us
Digg this!

Add your comment