Get Math Help

GET TUTORING NEAR ME!

(800) 434-2582

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

    Home / Get Math Help

    Ramp Function

    Usage

    Ramp[x] gives x if x>=0 and 0 otherwise.

    Basic examples

    Evaluate numerically:
In[1]:=Ramp[-1]
Out[1]=0
In[2]:=Ramp[3.7]
Out[2]=3.7
Plot over a subset of the reals:
In[1]:=Plot[Ramp[x], {x, -2, 2}]
Out[1]=
Ramp is a piecewise function:
In[1]:=PiecewiseExpand[Ramp[x]]
Out[1]= piecewise | x | x>=0
0 | True

    Attributes

    Listable | NumericFunction | Protected

    Relationships with other entities

    UnitStep | LogisticSigmoid | HeavisideTheta

    Relationships with other entities

    Typical ranks of usage in programs

    976th most common (1 in 94700 symbols)

    999th most common (1 in 18800 symbols)

    History

    introduced in Version 11 (August 2016)

    Timeline

    Timeline

    Back to List | POWERED BY THE WOLFRAM LANGUAGE