Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
documentation:language_reference:functions:chop [2023/08/30 15:17] – Maurits W. Haverkort | documentation:language_reference:functions:chop [2025/07/25 11:14] (current) – Corrected default tolerance Johann Collard | ||
---|---|---|---|
Line 2: | Line 2: | ||
### | ### | ||
- | Chop(//a//) replaces approximate real numbers in //a// that are close to zero by the exact integer 0. Chop(//a//, $\epsilon$) replaces numbers smaller in absolute magnitude than $\epsilon$ by 0. Chop uses a default tolerance of $\epsilon=10^{-10}$. Chop works on Real and Complex numbers as well as on operators, wavefunctions | + | Chop(//a//) replaces approximate real numbers in //a// that are close to zero by the exact integer 0. Chop(//a//, $\epsilon$) replaces numbers smaller in absolute magnitude than $\epsilon$ by 0. Chop uses a default tolerance of $\epsilon=2.3\cdot10^{-15}$ (or 10 times the double machine precision DBL_EPSILON if defined). Chop works on Real and Complex numbers as well as on operators, wavefunctions, Tight binding |
### | ### | ||