Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:language_reference:objects:matrix:operations:index [2024/12/12 14:28] – created Maurits W. Haverkortdocumentation:language_reference:objects:matrix:operations:index [2024/12/12 15:37] (current) Maurits W. Haverkort
Line 3: Line 3:
  
 ### ###
-alligned paragraph text+You can index matrices in the same way one indexes Lua tables
 ### ###
  
 ===== Example ===== ===== Example =====
- 
-### 
-description text 
-### 
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+A = Matrix.New({{1,2},{3,4}}) 
 +B = A[2] 
 +print("A[2] = ",B) 
 +C = A[2][1] 
 +print("A[2][1] = ",C)
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+A[2] = {  3      ,  4      } 
 + 
 +A[2][1] = 3
 </file> </file>
  
 ===== Table of contents ===== ===== Table of contents =====
-{{indexmenu>.#1|msort}}+{{indexmenu>..:#2|tsort}}
  
Print/export