MathGroup Archive 2006

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

Search the Archive

Re: Rescale


On 3/31/06 at 6:09 AM, koopman at sfu.ca (Ray Koopman) wrote:

>InputForm@{#,Rescale@#}&@Sort@Table[Random[],{3}]

>{{0.1495146427525807, 0.9032356867418898, 0.9803938132050517},
>{2.7755575615628914*^-17, 0.9071367664432557, 1.0000000000000002}}

>What is Rescale doing, that it does not always give N@0 and N@1 for
>the first and last elements?

I would *guess* it is doing exactly as advertised using floating point arithmetic and what you are seeing for some inputs is due to the usual vagaries of floating point arithmetic.
--
To reply via email subtract one hundred and four


  • Prev by Date: Typing special symbols in text mode?
  • Next by Date: Re: Rescale
  • Previous by thread: Re: Typing special symbols in text mode?
  • Next by thread: Re: Rescale