Differences

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

Link to this comparison view

documentation:language_reference:objects:spectra:properties:integral [2016/09/29 11:40] – created Maurits W. Haverkortdocumentation:language_reference:objects:spectra:properties:integral [2016/10/10 09:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 [[documentation:language_reference:objects:spectra:start|definitions file]] for spectra.
 +###
 +
 +==== Input ====
 +<code Quanty Example.Quanty>
 +dofile("definitions.Quanty")
 +print(G.Integral)
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output>
 +{ 2.85 , 1.2 , 1.65 }
 +</file>
 +
 +
 +
 +===== Available functions =====
 +{{indexmenu>../functions/#1}}
 +
 +===== Available methods =====
 +{{indexmenu>../methods/#1}}
 +
 +===== Available properties =====
 +{{indexmenu>.#1}}
Print/export