Table of Contents
Add
One can add two matrices element by element
Example
- Example.Quanty
A = Matrix.New({{1,2},{3,4}}) B = Matrix.New({{5,6},{7,8}}) C = A + B print(C)
Result
{ { 6 , 8 } , { 10 , 12 } }
One can add two matrices element by element
A = Matrix.New({{1,2},{3,4}}) B = Matrix.New({{5,6},{7,8}}) C = A + B print(C)
{ { 6 , 8 } , { 10 , 12 } }