MathGroup Archive 2011

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

Search the Archive

Re: Clip[] doesn't work as expected

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115381] Re: Clip[] doesn't work as expected
  • From: István Zachar <zac at freemail.hu>
  • Date: Sun, 9 Jan 2011 02:20:53 -0500 (EST)
  • References: <ig6lcm$dpm$1@smc.vnet.net> <ig97u8$1v2$1@smc.vnet.net>

Hi,

the bug seems to be handled in v8.0:

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

Out[1]= 1.

But comes back if I add one more zero before 36:

In[2]:= Clip[1.000000000000000036, {0., 1.}]

Out[2]= 1.00000000000000004

Istvan



On Jan 8, 9:40 am, Alexey <lehi... at gmail.com> wrote:
> Hello,
> I confirm this bug in Mathematica 5.2 and 7.0.1 under Windows.
>
> Yen Lee Loh <yenleel... at gmail.com> 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.
>
> > Yen Lee



  • Prev by Date: Re: Clip[] doesn't work as expected
  • Next by Date: Re: doesn't work as expected
  • Previous by thread: Re: Clip[] doesn't work as expected
  • Next by thread: Re: Clip[] doesn't work as expected