Re: Chop in Mathematica 8.0.1
- To: mathgroup at smc.vnet.net
- Subject: [mg117536] Re: Chop in Mathematica 8.0.1
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Tue, 22 Mar 2011 05:06:30 -0500 (EST)
- References: <im7c6c$74$1@smc.vnet.net>
On 2011.03.21. 12:18, Andrzej Kozlowski wrote: > Chop does not seem to work properly in Mathematica 8.0.1: > > f[a_] := 2 I Pi Sin[a]/a > > In[2]:= f[1.] > > Out[2]= 0. + 5.287118128162912*I > > In[3]:= Chop[%] > > Out[3]= 0. + 5.287118128162912*I > > This is with > > In[4]:= $Version > > Out[4]= 8.0 for Mac OS X x86 (64-bit) (February 23, 2011) > > Mathematica 7.01 returns 5.287118128162912*I as expected. > > Can anyone confirm it? At the moment I can't see any simple work around... > Hello Andrzej, Is it possible that this is just a change in how complex numbers are displayed? Consider {0 + I, 1. I, 1 + 0. I} (the 2nd and 3rd are machine precision) It appears that the real part of non-exact numbers is always displayed, even if it is (0.).