MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: doesn't work as expected

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115378] Re: doesn't work as expected
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sun, 9 Jan 2011 02:20:18 -0500 (EST)

On 1/7/11 at 4:11 AM, yenleeloh1 at gmail.com (Yen Lee Loh) wrote:

>On Mathematica v7.0.1 on Mac OS X,

>Clip[1.00000000000000036, {0., 1.}]

>gives

>1.0000000000000004

>upon close examination of the output.  The documentation does not
>warn of this behavior. I have not checked if the same thing happens
>in Mathematica v8. Just thought I would let you know.

Here, I see

In[1]:= {$Version, $ReleaseNumber}

Out[1]= {7.0 for Mac OS X x86 (64-bit) (February 19, 2009),1}

In[2]:= RealDigits at Clip[1.00000000000000036, {0., 1.}]

Out[2]= {{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,6},1}

and

In[1]:= {$Version, $ReleaseNumber}

Out[1]= {8.0 for Mac OS X x86 (64-bit) (November 6, 2010),0}

In[2]:= RealDigits at Clip[1.00000000000000036, {0., 1.}]

Out[2]= {{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},1}

So, this appears to be a bug in version 7 that has been
corrected in version 8



  • Prev by Date: Re: Clip[] doesn't work as expected
  • Next by Date: Solve can solve it with some help
  • Previous by thread: Re: Mathematica will be a new feature of HTML6
  • Next by thread: Solve can solve it with some help