Difference between revisions of "Manuals/calci/MATRIXSUBTRACT"
(Created page with "<div style="font-size:30px">'''MATRIXSUBTRACT (a,b) '''</div><br/> *<math>a </math> and <math>b</math> are any two matrices. ==Description== *This function is calculating the...") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
a_{m1}-b_{m1} & a_{m2}-b_{m2}& \cdots & a_{mn}-b_{mn} | a_{m1}-b_{m1} & a_{m2}-b_{m2}& \cdots & a_{mn}-b_{mn} | ||
\end{bmatrix}</math> | \end{bmatrix}</math> | ||
| + | |||
| + | ==Examples== | ||
| + | 1. MATRIXSUBTRACT([[10,14,17],[6,-3,-5],[21,-34,76]],[[22,25,33],[-17,19,20],[26,35,-21]]) | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | | -12 || -11 || -16 | ||
| + | |- | ||
| + | | 23 || -22 || -25 | ||
| + | |- | ||
| + | | -5 || -69 || 97 | ||
| + | |} | ||
| + | 2. MATRIXSUBTRACT([[2,17,18,-34,98],[60,3.15,36,23,13]],[[54,55,3,19,25],[65,45,77,-90,88.8]]) | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | | -52 || -38 || 15 || -53 || 73 | ||
| + | |- | ||
| + | | -5 || -41.85 || -41 || 113 || -75.8 | ||
| + | |} | ||
| + | |||
| + | ==Related Videos== | ||
| + | |||
| + | {{#ev:youtube|v=WR9qCSXJlyY|280|center|Matrix Subtraction}} | ||
| + | |||
| + | ==See Also== | ||
| + | *[[Manuals/calci/MATRIXSCALARSUBTRACT| MATRIXSCALARSUBTRACT]] | ||
| + | *[[Manuals/calci/MATRIXOPERATORS| MATRIXOPERATORS]] | ||
| + | *[[Manuals/calci/MATRIXMOD| MATRIXMOD ]] | ||
| + | |||
| + | ==References== | ||
| + | *[https://www.mathsisfun.com/numbers/subtraction.html Minus] | ||
| + | |||
| + | |||
| + | *[[Z_API_Functions | List of Main Z Functions]] | ||
| + | *[[ Z3 | Z3 home ]] | ||
Latest revision as of 11:46, 25 April 2019
- 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 is calculating the subtraction of two matrices or with the scalar value.
- 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 MATRIXSUBTRACT(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 two matrices.
- Suppose when we are subtracting two matrices,the order of the matrices to be considered.
- But while subtracting with a scalar order of matrix is not considered.
- Using this function we can do the subtraction between two matrices and one matrix with a scalar value.
- So subtraction is defined 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}}
Examples
1. MATRIXSUBTRACT([[10,14,17],[6,-3,-5],[21,-34,76]],[[22,25,33],[-17,19,20],[26,35,-21]])
| -12 | -11 | -16 |
| 23 | -22 | -25 |
| -5 | -69 | 97 |
2. MATRIXSUBTRACT([[2,17,18,-34,98],[60,3.15,36,23,13]],[[54,55,3,19,25],[65,45,77,-90,88.8]])
| -52 | -38 | 15 | -53 | 73 |
| -5 | -41.85 | -41 | 113 | -75.8 |
Related Videos
See Also
References