Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:objects:spectra:methods:multiplybyenergy [2016/09/29 10:53] – created Maurits W. Haverkort | documentation:language_reference:objects:spectra:methods:multiplybyenergy [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== MultiplyByEnergy ====== | ||
| + | ### | ||
| + | If //G// is a spectra object then // | ||
| + | ### | ||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | Take the spectrum defined in the file [[documentation: | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | |||
| + | <code Quanty Example.Quanty> | ||
| + | dofile(" | ||
| + | |||
| + | G.Print({{" | ||
| + | G.MultiplyByEnergy() | ||
| + | G.Print({{" | ||
| + | |||
| + | |||
| + | gnuplotScript = gnuplotHead .. [[ | ||
| + | set output " | ||
| + | plot " | ||
| + | " | ||
| + | ]] | ||
| + | |||
| + | file = io.open(" | ||
| + | file: | ||
| + | file: | ||
| + | |||
| + | os.execute(" | ||
| + | os.execute(" | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | The resulting picture is: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ===== Available functions ===== | ||
| + | {{indexmenu> | ||
| + | |||
| + | ===== Available methods ===== | ||
| + | {{indexmenu> | ||