Ramp

Ramp[x]

gives x if x0 and 0 otherwise.

Details

  • Ramp automatically threads over lists.

Examples

open allclose all

Basic Examples  (3)

Evaluate numerically:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Plot over a subset of the reals:

In[1]:=
Click for copyable input
Out[1]=

Ramp is a piecewise function:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Applications  (2)

Properties & Relations  (1)

See Also

UnitStep  LogisticSigmoid  HeavisideTheta

Introduced in 2016
(11.0)