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