Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:language_reference:objects:matrix:operations:tostring [2024/12/12 15:29] Maurits W. Haverkortdocumentation:language_reference:objects:matrix:operations:tostring [2024/12/12 15:38] (current) Maurits W. Haverkort
Line 16: Line 16:
 A = Matrix.New({{1,2},{3,4}}) A = Matrix.New({{1,2},{3,4}})
 AStr = tostring(A) AStr = tostring(A)
 +print(AStr)
 BStr = string.gsub(AStr, "{", "[") BStr = string.gsub(AStr, "{", "[")
 BStr = string.gsub(BStr, "}", "]") BStr = string.gsub(BStr, "}", "]")
Line 23: Line 24:
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
 +{ {  1      ,  2      } ,
 +  {  3      ,  4      } }
 +
 [ [  1      ,  2      ] , [ [  1      ,  2      ] ,
   [  3      ,  4      ] ]   [  3      ,  4      ] ]
Line 28: Line 32:
  
 ===== Table of contents ===== ===== Table of contents =====
-{{indexmenu>.#1|tsort}}+{{indexmenu>..:#2|tsort}}
  
Print/export