ToTable

Turns a spectrum object into a table object. The spectra different spectra are found at index 1. The different energies at index 2. Index 3 returns on place 1 the energy and on place 2 the intensity (energy,intensity).

Example

The following example creates the spectra as defined in the definitions.Quanty file on a very coarse mesh in order to reduce the printout. It then converts the spectra to a table and the table is printed.

Input

Example.Quanty
dofile("definitions.Quanty")
G = CreateSpectra(H, {T1,T2,T3}, psi, {{"Emin",-1}, {"Emax",11}, {"NE",12}})
Gtable = Spectra.ToTable(G)
print(Gtable[1])

Result

{ { -1 , (-0.25082833919221 - 0.16951499736424 I) } , 
  { 0 , (-0.25975703085265 - 0.20334602606582 I) } , 
  { 1 , (-0.26379949966751 - 0.24413956136137 I) } , 
  { 2 , (-0.25986462187822 - 0.29167286715724 I) } , 
  { 3 , (-0.24440882383199 - 0.34437984132295 I) } , 
  { 4 , (-0.2140147772378 - 0.39892832487851 I) } , 
  { 5 , (-0.16626847154725 - 0.45 I) } , 
  { 6 , (-0.10096119024695 - 0.49046971674741 I) } , 
  { 7 , (-0.021508179003324 - 0.5123910066493 I) } , 
  { 8 , (0.064068845701631 - 0.50930023072181 I) } , 
  { 9 , (0.14409855705312 - 0.47963021268209 I) } , 
  { 10 , (0.20734480317879 - 0.42899004521312 I) } , 
  { 11 , (0.2481489483747 - 0.3681745033512 I) } ,
  EminPole = -1.9855965600709 ,
  Name = Spectrum 0 ,
  EmaxPole = 9 ,
  Integral = 2.85 ,
  Gamma = 10 }

Available functions

Print/export