2,030 bytes added
, 20:09, 3 July 2017
<div style="font-size:30px">'''MATRIXSCALAROPERATION (a,afactor,Operation) '''</div><br/>
*<math>a </math> is any matrix.
*<math> afactor</math> is any constant value.
*<math> Operation</math> is any operation to do with the matrix.
==Description==
*This function is doing any operation with the scalar value for the given matrix.
*In <math>MATRIXSCALAROPERATION (a,afactor,Operation)</math>, <math>a</math> is any matrix.
*<math>afactor</math> is the any constant value.
*<math>Operation</math> is any operation to do with the matrix.
*To do any operation between two matrices,the order of the matrices to be considered.
*But while doing any operation with the scalar value order of matrix is not considered.
*To do any operation for the matrix with a constant value,then simply doing any operation with the scalar value and each entries in the given matrix.
*Here operation means not only the arithmetic operation like addition,subtraction,multiplication and division.
*Along with that we can do the operations like log,exp ,power and so on.
==Examples==
1. MATRIXSCALAROPERATION([[3,4,5],[10,12,18],[23,-67,123.5]],17,"+")
{| class="wikitable"
|-
| 20 || 21 || 22
|-
| 27 || 29 || 35
|-
| 40 || -50 || 140.5
|}
2. MATRIXSCALAROPERATION([[23,87,-10,34,67.2],[12,-15,22,90.6,132]],34,"*")
{| class="wikitable"
|-
| 782 || 2958 || -340 || 1156 || 2284.8
|-
| 408 || -510 || 748 || 3080.3999999999996 || 4488
|}
3. MATRIXSCALAROPERATION([[12,14,27],[-78,34,65]],5,"LOG")
{| class="wikitable"
|-
| 1.5439593106327716 || 1.6397385131955606 || 2.047818583457956
|-
| NaN || 2.1910509857959815 || 2.5936926411670824
|}
==See Also==
*[[Manuals/calci/MATRIXSCALARADD | MATRIXSCALARADD]]
*[[Manuals/calci/MATRIXSCALARMULTIPLY | MATRIXSCALARMULTIPLY ]]
*[[Manuals/calci/MATRIXSCALARLOG | MATRIXSCALARLOG]]
==References==
*[http://https://en.wikipedia.org/wiki/Multiplication Multiplication]
*[http://en.wikipedia.org/wiki/Natural_logarithm Natural Logarithm]
*[[Z_API_Functions | List of Main Z Functions]]
*[[ Z3 | Z3 home ]]