MathGroup Archive 2009

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

Search the Archive

Re: Replacing Values Close to One

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105311] Re: Replacing Values Close to One
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Fri, 27 Nov 2009 06:29:48 -0500 (EST)

On 11/25/09 at 11:00 PM, gregory.lypny at videotron.ca (Gregory Lypny)
wrote:

>Is there a replacement rule that I can apply to

>{-8, .7, 0, 1.003}  /.  [what goes here?] -> 1

>to replace values that are close to 1, like 1.003, by 1?

I think it would be more convenient to use Round rather than a
replacement rule, i.e.,

In[1]:= Round[{-8, .7, 0, 1.003}, .01]

Out[1]= {-8.,0.7,0,1.}



  • Prev by Date: test implication
  • Next by Date: RevolutionPlot3D: Specifying the axis of rotation
  • Previous by thread: Re: Replacing Values Close to One
  • Next by thread: Re: Replacing Values Close to One