Difference between revisions of "Manuals/calci/MATRIXEQUAL"

From ZCubes Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
*This function is the tester function of matrix equalities.
 
*This function is the tester function of matrix equalities.
 
*In <math>MATRIXEQUAL (a,b)</math> ,<math>a</math> and <math>b</math> are any two matrices.
 
*In <math>MATRIXEQUAL (a,b)</math> ,<math>a</math> and <math>b</math> are any two matrices.
*For two matrices to be equal, they must be of the same size and have all the same entries in the same places
+
*For two matrices to be equal, they must be of the same size and have all the same entries in the same places.
 +
*If the Matrices are equal it should follow the below three conditions.
 +
#Both the matrices  has the same number of rows.
 +
#Both the matrices has the same number of columns.
 +
#Corresponding elements within each matrix are equal
 
*Suppose all the entries of the two matrices are equal then this function return as TRUE.
 
*Suppose all the entries of the two matrices are equal then this function return as TRUE.
*If any one entry is not equal compared with the first matrix and second matrix then this function will return as FALSE.  
+
*If any one entry is not equal compared with the first matrix and second matrix then this function will return as FALSE.
 
 
  
 
==Examples==
 
==Examples==

Revision as of 16:05, 14 June 2017

MATRIXEQUAL (a,b)


  • and are any two matrices.


Description

  • This function is the tester function of matrix equalities.
  • In , and are any two matrices.
  • For two matrices to be equal, they must be of the same size and have all the same entries in the same places.
  • If the Matrices are equal it should follow the below three conditions.
  1. Both the matrices has the same number of rows.
  2. Both the matrices has the same number of columns.
  3. Corresponding elements within each matrix are equal
  • Suppose all the entries of the two matrices are equal then this function return as TRUE.
  • If any one entry is not equal compared with the first matrix and second matrix then this function will return as FALSE.

Examples

  1. MATRIXEQUAL([2,4;5,6],[2,4;5,6]) = true
  2. MATRIXEQUAL([3,4,5;9,8,7],[3,4,5;8,9,7]) = false
  3. MATRIXEQUAL([1,4;2,5;3,6],[1,4,2;5,3,6]) = false

See Also

References