Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Clip

Usage

Clip[x] gives x clipped to be between  and  .
Clip[x, {min, max}] gives x for min  x  max, min for x < min and max for x > max.
Clip[x, {min, max}, { ,  }] gives  for x < min and  for x > max.


Notes

Clip[x] is effectively equivalent to Piecewise[{{-1, x < -1}, {+1, x > +1}}, x].
• The  , as well as other arguments of Clip, need not be numbers.
• For exact numeric quantities, Clip internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
• See Section 3.2.2.
• See also: Sign, Piecewise, Min, Rescale, Chop.
• New in Version 5.1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: