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:27] – created Maurits W. Haverkort | documentation:language_reference:objects:matrix:operations:add [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ### | ### | ||
| - | alligned paragraph text | + | One can add two matrices element by element |
| ### | ### | ||
| ===== Example ===== | ===== Example ===== | ||
| - | ### | ||
| - | description text | ||
| - | ### | ||
| - | |||
| - | ==== Input ==== | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| - | -- some example code | + | A = Matrix.New({{1, |
| + | B = Matrix.New({{5, | ||
| + | C = A + B | ||
| + | print(C) | ||
| </ | </ | ||
| ==== Result ==== | ==== Result ==== | ||
| <file Quanty_Output> | <file Quanty_Output> | ||
| - | text produced as output | + | { { 6 , 8 } , |
| + | { 10 , | ||
| </ | </ | ||
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| - | {{indexmenu> | + | {{indexmenu> |