1,339 bytes added
, 21:47, 28 June 2017
<div style="font-size:30px">'''MATRIXSCALARADD (a,afactor) '''</div><br/>
*<math>a</math> is any matrix.
*<math>afactor</math> is any constant value.
==Description==
*This function is adding the scalar value with the given matrix.
*In <math>MATRIXSCALARADD (a,afactor)</math>, <math>a</math> is any matrix.
*Suppose when we are adding two matrices,the order of the matrices to be considered.
*But while adding with a scalar order of matrix is not considered.
*To add a matrix by a scalar which is a single number,that simply add each element in the matrix by this number.
*So in the given matrix entries are increased by the scalar value.
==Examples==
1. MATRIXSCALARADD([-6,12,5;3,-2,9;8,3,3;4,9,10],4)
{| class="wikitable"
|-
| -2 || 16 || 9
|-
| 7 || 2 || 13
|-
| 12 || 7 || 7
|-
| 8 || 13 || 14
|}
2. MATRIXSCALARADD([10,15,18,13;22,25,8,65;-23,-67,-98.4,15;17,43,56.26;71,-90,145,672],69)
{| class="wikitable"
|-
| 79 || 84 || 87 || 82
|-
| 91 || 94 || 77 || 134
|-
| 46 || 2 || -29.400000000000006 || NaN
|-
| 140 || -21 || 214 || 741
|}
==See Also==
*[[Manuals/calci/MATRIXADD | MATRIXADD]]
*[[Manuals/calci/MDETERM | MDETERM]]
*[[Manuals/calci/MATRIXDIVIDE | MATRIXDIVIDE]]
==References==
*[https://en.wikipedia.org/wiki/Matrix_addition Matrix addition]
*[[Z_API_Functions | List of Main Z Functions]]
*[[ Z3 | Z3 home ]]