Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:spectra:functions:totable [2016/09/26 00:02] – created Maurits W. Haverkort | documentation:language_reference:objects:spectra:functions:totable [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 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, | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | The following example creates the spectra as defined in the [[documentation: | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Example.Quanty> | ||
| + | dofile(" | ||
| + | G = CreateSpectra(H, | ||
| + | Gtable = Spectra.ToTable(G) | ||
| + | print(Gtable[1]) | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output> | ||
| + | { { -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 ===== | ||
| + | {{indexmenu> | ||