Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
documentation:language_reference:functions:chop [2023/08/30 15:17] Maurits W. Haverkortdocumentation: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 and Tight binding objects. +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, wavefunctionsTight binding and response function objects. 
 ### ###
  
Print/export