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