Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:matrix:functions:expand [2018/09/25 13:02] – created Simon Heinze | documentation:language_reference:objects:matrix:functions:expand [2024/12/12 17:39] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
- | Matrix.Expand($M$, | + | Matrix.Expand($M$, |
### | ### | ||
===== Example ===== | ===== Example ===== | ||
- | |||
- | ### | ||
- | Has yet to be written. | ||
- | ### | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | A = Matrix.New({{1, |
+ | {3,4}}) | ||
+ | B = Matrix.Expand(A, | ||
+ | C = Matrix.Expand(A, | ||
+ | print(B) | ||
+ | print(C) | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | { { 1 , 2 , 0 , 0 } , |
+ | { 3 , 4 , 0 , 0 } , | ||
+ | { 0 , 0 , 0 , 0 } , | ||
+ | { 0 , 0 , 0 , 0 } } | ||
+ | |||
+ | { { 1 , 2 , 0 , 0 } , | ||
+ | { 3 , 4 , 0 , 0 } , | ||
+ | { 0 , 0 , 3 , 0 } , | ||
+ | { 0 , 0 , 0 , 3 } } | ||
</ | </ | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
- | {{indexmenu> | + | {{indexmenu> |