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.


  • 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 .
New in 4
New to Mathematica? Find your learning path »
Have a question? Ask support »