Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:language_reference:objects:matrix:operations:add [2024/12/12 14:23] – removed Maurits W. Haverkortdocumentation:language_reference:objects:matrix:operations:add [2024/12/12 15:36] (current) Maurits W. Haverkort
Line 1: Line 1:
 +{{indexmenu_n>999}}
 +====== Add ======
 +
 +###
 +One can add two matrices element by element
 +###
 +
 +===== Example =====
 +
 +<code Quanty Example.Quanty>
 +A = Matrix.New({{1,2},{3,4}})
 +B = Matrix.New({{5,6},{7,8}})
 +C = A + B
 +print(C)
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output>
 +{ {  6      ,  8      } ,
 +  {  10     ,  12     } }
 +</file>
 +
 +===== Table of contents =====
 +{{indexmenu>..:#2|tsort}}
  
Print/export