Integral

table of double, read only

If G is a spectrum object G.Integral returns a list of length G.N stating the integral of the spectrum $-\frac{1}{\pi}\int_{-\infty}^{\infty}G(\omega)\mathrm{d}\omega$. Note that this value is independent of G.Emin and G.Emax and includes spectral weight outside the region stored in the spectral object. The integral is calculated during the creation of the spectral object and carried on during manipulation.

Example

Print the integral of the spectra calculated in the definitions file for spectra.

Input

Example.Quanty
dofile("definitions.Quanty")
print(G.Integral)

Result

{ 2.85 , 1.2 , 1.65 }

Available functions

Available methods

Available properties

Print/export