Differences
This shows you the differences between two versions of the page.
| documentation:language_reference:functions:statistics [2016/10/09 21:54] – created Maurits W. Haverkort | documentation:language_reference:functions:statistics [2025/11/20 03:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Statistics ====== | ||
| + | ### | ||
| + | Statistics(psi, | ||
| + | ### | ||
| + | |||
| + | ===== Input ===== | ||
| + | |||
| + | * psi : Wavefunction | ||
| + | * base : double | ||
| + | * nstep : Integer | ||
| + | |||
| + | ===== Output ===== | ||
| + | |||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | ### | ||
| + | a small example | ||
| + | ### | ||
| + | |||
| + | ==== Input ==== | ||
| + | <code Quanty Statistics.Quanty> | ||
| + | dofile(" | ||
| + | |||
| + | print(psi1) | ||
| + | |||
| + | base=2.0 | ||
| + | nstep=10 | ||
| + | |||
| + | hist = Statistics(psi1, | ||
| + | |||
| + | for i=1,nstep do | ||
| + | io.write(string.format(" | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | ==== Result ==== | ||
| + | <file Quanty_Output Statistics.out> | ||
| + | WaveFunction: | ||
| + | QComplex | ||
| + | N = 2 (Number of basis functions used to discribe psi) | ||
| + | NFermionic modes = 6 (Number of fermions in the one particle basis) | ||
| + | NBosonic modes | ||
| + | |||
| + | # pre-factor | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | ===== Table of contents ===== | ||
| + | {{indexmenu> | ||