1,419 bytes added
, 23:00, 3 July 2017
<div style="font-size:30px">'''MATRIXSCALARSUBTRACT (a,afactor) '''</div><br/>
*<math>a </math> is any matrix.
*<math> afactor</math> is any constant value.
==Description==
*This function is subtracting the scalar value with the given matrix.
*In <math>MATRIXSCALARSUBTRACT (a,afactor)</math>,<math>a</math> is any matrix.
*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.
*To subtract a matrix by a scalar which is a single number,that simply subtract each element in the matrix by this number.
*So in the given matrix entries are decreased by the scalar value.
==Examples==
1. MATRIXSCALARSUBTRACT([[2,3,8],[-10,17,-20],[541,769.43,-451]],52)
{| class="wikitable"
|-
| -50 || -49 || -44
|-
| -62|| -35 || -72
|-
| 489 || 717.43 || -503
|}
2.MATRIXSCALARSUBTRACT([[10,14,5.17],[6,-3,-5],[21.2,-34,76.8],[-17,19.4,20],[26,35,-21]],46)
{| class="wikitable"
|-
| -36 || -32 || -40.83
|-
| -40|| -49 || -51
|-
| -24.8 || -80 || 30.799999999999997
|-
| -63 || -26.6 || -26
|-
| -20 || -11 || -67
|}
==See Also==
*[[Manuals/calci/MATRIXMULTIPLY| MATRIXMULTIPLY]]
*[[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 ]]