Chop
Usage
• Chop[expr] 用确切的整数0替代expr中的接近零的近似实数.
Notes
• Chop[expr, delta]用0代替绝对大小小于delta的数. • Chop 使用一个  的缺省容限. • Chop 在Real和Complex数上使用. • 参见Mathematica全书: 节 3.1.4.
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]=
|
|