UnitStep

UnitStep[x]

represents the unit step function, equal to 0 for and 1 for .

UnitStep[x1,x2,]

represents the multidimensional unit step function which is 1 only if none of the are negative.

Details

  • Some transformations are done automatically when UnitStep appears in a product of terms.
  • UnitStep provides a convenient way to represent piecewise continuous functions.
  • UnitStep has attribute Orderless.
  • For exact numeric quantities, UnitStep internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
  • UnitStep[] is 1.

Examples

open allclose all

Basic Examples  (3)

Evaluate numerically:

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

Use UnitStep to construct piecewise functions:

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

Scope  (4)

Generalizations & Extensions  (1)

Applications  (6)

Properties & Relations  (3)

Possible Issues  (3)

See Also

UnitBox  RealSign  Positive  HeavisideTheta  DiscreteDelta  KroneckerDelta  Unitize  Boole  Piecewise  LogisticSigmoid  Ramp

Tutorials

Introduced in 1999
(4.0)