The ramp function () may be defined analytically in several ways. Possible definitions are: • A
piecewise function: R(x) := \begin{cases} x, & x \ge 0; \\ 0, & x • Using the
Iverson bracket notation: R(x) := x \cdot [x \geq 0] or R(x) := x \cdot [x > 0] • The
max function: R(x) := \max(x,0) • The
mean of an
independent variable and its
absolute value (a straight line with unity gradient and its modulus): R(x) := \frac{x+|x|}{2} this can be derived by noting the following definition of , \max(a,b) = \frac{a + b + |a - b|}{2} for which and • The
Heaviside step function multiplied by a straight line with unity gradient: R\left( x \right) := x H(x) • The
convolution of the Heaviside step function with itself: R\left( x \right) := H(x) * H(x) • The
integral of the Heaviside step function: R(x) := \int_{-\infty}^{x} H(\xi)\,d\xi •
Macaulay brackets: R(x) := \langle x\rangle • The
positive part of the
identity function: R := \operatorname{id}^+ • As a limit function: R\left( x \right) := \lim_{a\to \infty} \begin{cases} \frac{1}{a} ,\quad x=0 \\ \dfrac{x}{1-e^{-ax}},\quad x\neq 0\end{cases} It could approximated as close as desired by choosing an increasing positive value a>0 . == Applications ==