Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:language_reference:objects:matrix:operations:add [2024/12/12 14:23] – removed Maurits W. Haverkort | documentation:language_reference:objects:matrix:operations:add [2024/12/12 15:36] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | ====== Add ====== | ||
+ | |||
+ | ### | ||
+ | One can add two matrices element by element | ||
+ | ### | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | <code Quanty Example.Quanty> | ||
+ | A = Matrix.New({{1, | ||
+ | B = Matrix.New({{5, | ||
+ | C = A + B | ||
+ | print(C) | ||
+ | </ | ||
+ | |||
+ | ==== Result ==== | ||
+ | <file Quanty_Output> | ||
+ | { { 6 , 8 } , | ||
+ | { 10 , | ||
+ | </ | ||
+ | |||
+ | ===== Table of contents ===== | ||
+ | {{indexmenu> | ||