Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:language_reference:functions:chop [2016/10/10 09:41] – external edit 127.0.0.1 | documentation:language_reference:functions:chop [2025/11/20 03:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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 | + | 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 and response function objects. |
| ### | ### | ||
| Line 110: | Line 110: | ||
| </ | </ | ||
| + | |||
| + | ==== Options ==== | ||
| + | |||
| + | The last element of Chop can be a table of options. Possible options are: | ||
| + | * " | ||
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| {{indexmenu> | {{indexmenu> | ||