Difference between revisions of "Manuals/calci/MDETERM"

From ZCubes Wiki
Jump to navigation Jump to search
Line 34: Line 34:
 
\end{vmatrix}</math>:
 
\end{vmatrix}</math>:
 
<math>|A| =a(ei-fh) -b(di-fg)+c(dh-eg)</math>
 
<math>|A| =a(ei-fh) -b(di-fg)+c(dh-eg)</math>
*Let A be a square matrix of order n. Write A = (a_ij),
+
*Let <math>A</math> be a square matrix of order <math>n</math>. Write <math>A = (a_{ij})</math>,
*Where aij is the entry on the i number of rows and j number of columns and i=1 to n  &j=1 to n.
+
*Where <math>a_{ij}</math> is the entry on the <math>i</math> number of rows and <math>j</math> number of columns and <math>i=1</math> to <math>n</math> & <math>j=1</math> to <math>n</math>.
*For any i and j, set Aij (called the cofactors), then the general formula for determinant of the matrix A ,                                                         |A|=summation (j=1 to n)a_ij A_ij, for any fixed i.
+
*For any <math>i</math> and <math>j</math>, set <math>A_{ij}</math> (called the co-factors), then the general formula for determinant of the matrix A ,
Also|A|=summation (i=1 to n)a_ij A_ij, for any fixed j.
+
<math>|A|=summation (j=1 to n)a_ij A_ij</math>, for any fixed <math>i</math>.
 +
Also<math>|A|=\sum_{i=1}^n a_{ij} A_{ij}, for any fixed <math>j</math>.
 
*This function will give the result as error when  
 
*This function will give the result as error when  
 
  1. Any one of the element in array is empty or contain non-numeric
 
  1. Any one of the element in array is empty or contain non-numeric

Revision as of 03:59, 31 December 2013

MDETERM(arr)


  • where is the array of numeric elements


Description

  • This function gives the determinant value of a matrix.
  • To calculate the determinant of the matrix we can choose only square matrix.
  • i.e., Number rows and number of columns should be equal.
  • Determinant of the identity matrix is always 1.
  • Determinant of the matrix A is denoted by det(A) or |A|.
  • Let A be 2x2 matrix with the elements

  • Then det(A)=ad-bc, where a,b,c,d all are real numbers.
  • Let A be the 3x3 matrix with the elements

Then :

  • Let be a square matrix of order . Write ,
  • Where is the entry on the number of rows and number of columns and to & to .
  • For any and , set (called the co-factors), then the general formula for determinant of the matrix A ,

, for any fixed . Also.

  • This function will give the result as error when
1. Any one of the element in array is empty or contain non-numeric
2. Number of rows is not equal to number of columns

Examples

  1. =MDETERM({6,4,8;3,6,1;2,4,5}) = 104
  2. =DETERM({-5,10;6,-8}) = -20
  3. =MDETERM({1,0,2,1;4,0,2,-1;1,4,5,2;3,1,2,0}) = 17
  4. =MDETERM({1,2,3;5,2,8}) = NAN

See Also

References