Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
documentation:language_reference:objects:matrix:functions:inverse [2024/12/12 16:54] Maurits W. Haverkortdocumentation:language_reference:objects:matrix:functions:inverse [2024/12/12 17:51] (current) Maurits W. Haverkort
Line 7: Line 7:
  
 ===== Example ===== ===== Example =====
- 
-### 
-Eventually. 
-### 
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+M = Matrix.New({{1,2},{2,1}}) 
 +Minv = Matrix.Inverse(M) 
 +print("The inverse of the matrix M") 
 +print(M) 
 +print("is"
 +print(Minv) 
 +print("And Minv * M is") 
 +print(Minv*M)
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+The inverse of the matrix M 
 +{ {  1      ,  2      } , 
 +  {  2      ,  1      } } 
 + 
 +is 
 +{ { -0.3333 ,  0.6667 } , 
 +  {  0.6667 , -0.3333 } } 
 + 
 +And Minv * M is 
 +{ {  1      ,  0      } , 
 +  {  0      ,  1      } }
 </file> </file>
  
Print/export