Difference between revisions of "Manuals/calci/MATRIXMINUS"

(Created page with "<div style="font-size:30px">'''MATRIXMINUS (a,b,ConsiderUnits)'''</div><br/> *<math>a</math> and <math>b</math> are any two matrices. ==Description== *This function calculate...")
 
 
(2 intermediate revisions by the same user not shown)
Line 28: Line 28:
 
*Suppose the number of rows in the first matrix is more than the second matrix,this function will return the extra row entries with the same number.
 
*Suppose the number of rows in the first matrix is more than the second matrix,this function will return the extra row entries with the same number.
 
*Suppose the number of rows in the second matrix is more than the first matrix ,the extra row values of the second matrix will be ignored.
 
*Suppose the number of rows in the second matrix is more than the first matrix ,the extra row values of the second matrix will be ignored.
 +
 +
==Examples==
 +
1. MATRIXMINUS([2,4,0;8,6,3;9,12,-11],[3,-5,-9;8,5,7;8,4,6])
 +
{| class="wikitable"
 +
|-
 +
| -1 || 9 || 9
 +
|-
 +
| 0 || 1 || -4
 +
|-
 +
| 1 || 8 || -17
 +
|}
 +
2. MATRIXMINUS([-10,13,17;22,19,14],[12,18,-25;32,25,-16])
 +
{| class="wikitable"
 +
|-
 +
| -22 || -5 || 42
 +
|-
 +
| -10 || -6 || 30
 +
|}
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|v=WR9qCSXJlyY|280|center|Matrix Subtraction}}
 +
 +
==See Also==
 +
*[[Manuals/calci/MATRIXOPERATORS| MATRIXOPERATORS]]
 +
*[[Manuals/calci/MATRIXADD| MATRIXADD]]
 +
*[[Manuals/calci/MATRIXMULTIPLY| MATRIXMULTIPLY]]
 +
 +
==References==
 +
*[http://stattrek.com/matrix-algebra/matrix-addition.aspx Matrix Subtraction]
 +
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 13:48, 15 April 2019

MATRIXMINUS (a,b,ConsiderUnits)


  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle b} are any two matrices.

Description

  • This function calculates the subtraction of the two matrices.
  • In Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle MATRIXMINUS(a,b)} ,Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle a} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle b} are any two matrices.
  • Minus is one of the four basic operations of arithmetic.
  • Minus operation is the opposite operation of Add.
  • Matrix minus is the basic operation of subtracting two matrices with the corresponding entries.
  • Two matrices must have an equal number of rows and columns.
  • The minus of matrices A and B is denoted by Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A-B= \begin{bmatrix} a_{11} & a_{12}&\cdots & a_{1n} \\ a_{21}& a_{22}& \cdots & a_{2n} \\ \vdots & \ddots & \vdots \\ a_{m1} & a_{m2}& \cdots & a_{mn} \end{bmatrix} -\begin{bmatrix} b_{11} & b_{12}&\cdots & b_{1n} \\ b_{21}& b_{22}& \cdots & b_{2n} \\ \vdots & \ddots & \vdots \\ b_{m1} & b_{m2}& \cdots & b_{mn} \end{bmatrix} = \begin{bmatrix} a_{11}-b_{11} & a_{12}-b_{12}&\cdots & a_{1n}-b_{1n} \\ a_{21}-b_{21}& a_{22}-b_{22}& \cdots & a_{2n}-b_{2n} \\ \vdots & \ddots & \vdots \\ a_{m1}-b_{m1} & a_{m2}-b_{m2}& \cdots & a_{mn}-b_{mn} \end{bmatrix}}
  • Suppose the number of rows in the first matrix is more than the second matrix,this function will return the extra row entries with the same number.
  • Suppose the number of rows in the second matrix is more than the first matrix ,the extra row values of the second matrix will be ignored.

Examples

1. MATRIXMINUS([2,4,0;8,6,3;9,12,-11],[3,-5,-9;8,5,7;8,4,6])

-1 9 9
0 1 -4
1 8 -17

2. MATRIXMINUS([-10,13,17;22,19,14],[12,18,-25;32,25,-16])

-22 -5 42
-10 -6 30

Related Videos

Matrix Subtraction

See Also

References