Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:matrix:functions:enlarge [2018/09/25 11:48] – created Simon Heinze | documentation:language_reference:objects:matrix:functions:enlarge [2018/09/26 15:08] (current) – Added Code Example Simon Heinze | ||
---|---|---|---|
Line 5: | Line 5: | ||
Matrix.Enlarge($M$, | Matrix.Enlarge($M$, | ||
- | Compare // | + | Compare // |
### | ### | ||
===== Example ===== | ===== Example ===== | ||
- | |||
- | ### | ||
- | An example will follow. Probably. | ||
- | ### | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | M ={{3,5}, |
+ | {-2,I}} | ||
+ | print(Matrix.Enlarge(M, | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | { { 3 , 0 , 0 , 5 , 0 , 0 } , |
+ | { 0 , 3 , 0 , 0 , 5 , 0 } , | ||
+ | { 0 , 0 , 3 , 0 , 0 , 5 } , | ||
+ | { -2 , 0 , 0 , (0 + 1 I) , 0 , 0 } , | ||
+ | { 0 , -2 , 0 , 0 , (0 + 1 I) , 0 } , | ||
+ | { 0 , 0 , -2 , 0 , 0 , (0 + 1 I) } } | ||
</ | </ | ||