|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
Clip
Clip[x]
gives x clipped to be between
and
.
Clip[x, {min, max}]
gives x for
, min for
and max for
.
Clip[x, {min, max}, {vmin, vmax}]
gives
for
and
for
.
DetailsDetails
- 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.
New in 5.1
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




