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     } }

Table of contents

Print/export