Re: Chop in Mathematica 8.0.1
- To: mathgroup at smc.vnet.net
- Subject: [mg117528] Re: Chop in Mathematica 8.0.1
- From: Peter Pein <petsie at dordos.net>
- Date: Tue, 22 Mar 2011 05:05:02 -0500 (EST)
- References: <ABB5EA59-C6A9-4090-949D-694C1337772E@mimuw.edu.pl> <im7brv$t71$1@smc.vnet.net>
Am 21.03.2011 12:13, schrieb Andrzej Kozlowski: > Hmm... perhaps this is not a bug but a deliberate new design? > > Just evaluating > > 1.1 I > > returns > > 0. +1.1 > > It seems a purely cosmetic issue but it does look a rather > "untraditional". Can anyone confirm that this is indeed an intentional > change? > > Andrzej Kozlowski > > > > On 20 Mar 2011, at 12:44, 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... >> >> Andrzej Kozlowski > > No, fortunately it returns 0. + 1.1*I ;-)