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:functions:rotate [2024/12/12 15:41] – created Maurits W. Haverkortdocumentation:language_reference:objects:matrix:functions:rotate [2024/12/12 18:03] (current) Maurits W. Haverkort
Line 3: Line 3:
  
 ### ###
-alligned paragraph text+Matrix.Rotate($M$,$U$) makes the matrix transformation $U^* . M . U^T$. 
 ### ###
  
 ===== Example ===== ===== Example =====
  
-### 
-description text 
-### 
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+M = Matrix.New({{ 1, I, 2, I}, 
 +                {-I, 1, I, 2}, 
 +                { 2,-I, 4, I}, 
 +                {-I, 2,-I, 4}}) 
 +val, fun = Matrix.Eigensystem(M) 
 + 
 +Mdiag = Chop(Rotate(M,fun)) 
 +print(Mdiag)
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+{ { -1.1401 ,  0      ,  0      ,  0      } , 
 +  {  0      ,  0.6972 ,  0      ,  0      } , 
 +  {  0      ,  0      ,  4.3028 ,  0      } , 
 +  {  0      ,  0      ,  0      ,  6.1401 } }
 </file> </file>
  
Print/export