Differences
This shows you the differences between two versions of the page.
documentation:language_reference:objects:matrix:functions:sub [2018/09/25 11:58] – created Simon Heinze | documentation:language_reference:objects:matrix:functions:sub [2018/09/25 14:31] (current) – Added Code Example Simon Heinze | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Example ===== | ===== Example ===== | ||
- | |||
- | ### | ||
- | One of these days an example will appear here. | ||
- | ### | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | M = {{11, |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | print("" | ||
+ | print(" | ||
+ | print(Matrix.Sub(M, | ||
+ | |||
+ | print("" | ||
+ | print(" | ||
+ | print(Matrix.Sub(M, | ||
+ | |||
+ | print("" | ||
+ | print(" | ||
+ | print(Matrix.Sub(M, | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | |
+ | Matrix.Sub(M, | ||
+ | { { 11 , 12 , 13 } , | ||
+ | { 21 , 22 , 23 } , | ||
+ | { 31 , 32 , 33 } } | ||
+ | |||
+ | Matrix.Sub(M, | ||
+ | { { 11 , 12 , 13 , 14 } , | ||
+ | { 21 , 22 , 23 , 24 } } | ||
+ | |||
+ | Matrix.Sub(M, | ||
+ | { { 13 , 14 , 15 , 16 } , | ||
+ | { 23 , 24 , 25 , 26 } } | ||
</ | </ | ||