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 [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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> | ||