Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Numerical Functions  /
Chop

  • Chop[ expr ] replaces approximate real numbers in expr that are close to zero by the exact integer 0.
  • Chop[ expr , delta ] replaces numbers smaller in absolute magnitude than delta by 0.
  • Chop uses a default tolerance of .
  • Chop works on both Real and Complex numbers.
  • See the Mathematica book: Section 3.1.4.
  • See also: Rationalize, Round.

    Further Examples

    This computation gives a small imaginary part.

    In[1]:=

    Out[1]=

    You can get rid of the small imaginary part using Chop.

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.