Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:matrix:operations:sub [2024/12/12 14:29] – created Maurits W. Haverkort | documentation:language_reference:objects:matrix:operations:sub [2024/12/12 15:37] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
- | alligned paragraph text | + | One can subtract 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 = B - A | ||
+ | print(C) | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | { { 4 , 4 } , |
+ | { 4 , 4 } } | ||
</ | </ | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
- | {{indexmenu> | + | {{indexmenu> |