Chop

Chop[expr]

replaces approximate real numbers in expr that are close to zero by the exact integer 0.

Details

  • Chop[expr,delta] replaces numbers smaller in absolute magnitude than delta by 0.
  • Chop uses a default tolerance of 10-10.
  • Chop works on both Real and Complex numbers.

Examples

open allclose all

Basic Examples  (1)

Zero out elements that are very close to 0:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (2)

Applications  (2)

Properties & Relations  (1)

Possible Issues  (1)

See Also

Threshold  Rationalize  Round  Clip  Accuracy  Floor  IntegerPart  N  Precision  SetPrecision

Tutorials

Introduced in 1988
(1.0)