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:tutorials:nio_crystal_field:nixs_m45 [2018/03/20 11:09] Maurits W. Haverkortdocumentation:tutorials:nio_crystal_field:nixs_m45 [2019/02/21 08:22] (current) Maurits W. Haverkort
Line 30: Line 30:
 NF=10 NF=10
 NB=0 NB=0
-IndexDn_3d={0,1,2,3,4} +IndexDn_3d={0,2,4,6,8
-IndexUp_3d={5,6,7,8,9}+IndexUp_3d={1,3,5,7,9}
  
 -- define operators on this basis -- define operators on this basis
Line 111: Line 111:
   for j = 1,#oppList do   for j = 1,#oppList do
     expectationvalue = Chop(psiList[i]*oppList[j]*psiList[i])     expectationvalue = Chop(psiList[i]*oppList[j]*psiList[i])
-    io.write(string.format("%6.3f ",expectationvalue))+    io.write(string.format("%6.3f ",Complex.Re(expectationvalue)))
   end   end
   io.write("\n")   io.write("\n")
Print/export