Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:language_reference:objects:matrix:functions:new [2024/12/12 15:40] – created Maurits W. Haverkort | documentation:language_reference:objects:matrix:functions:new [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | ====== New ====== | + | ====== |
| ### | ### | ||
| - | alligned paragraph text | + | Matrix.New(T) creates a matrix object from the table t. Matrices can only have numerical (real or complex) entries and all rows must be of equal length. |
| ### | ### | ||
| ===== Example ===== | ===== Example ===== | ||
| - | |||
| - | ### | ||
| - | description text | ||
| - | ### | ||
| ==== Input ==== | ==== Input ==== | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| - | -- some example code | + | M = Matrix.New({{1, |
| + | print(M) | ||
| </ | </ | ||
| ==== Result ==== | ==== Result ==== | ||
| <file Quanty_Output> | <file Quanty_Output> | ||
| - | text produced as output | + | { { 1 , 2 } , |
| + | { 2 , 1 } } | ||
| </ | </ | ||