Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
documentation:tutorials:nio_crystal_field:xas_l23_partial_excitations [2016/10/10 09:41] – external edit 127.0.0.1documentation:tutorials:nio_crystal_field:xas_l23_partial_excitations [2018/03/21 10:20] (current) Stefano Agrestini
Line 351: Line 351:
   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("%8.3f ",Complex.Re(expectationvalue)))
   end   end
   io.write("\n")   io.write("\n")
Print/export