Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Mathematical Functions > Numerical Functions >

UnitStep

UnitStep[x]
represents the unit step function, equal to 0 for x<0 and 1 for x>=0.
UnitStep[x1, x2, ...]
represents the multidimensional unit step function which is 1 only if none of the x_i 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.
  • 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.
Evaluate numerically:
Use UnitStep to construct piecewise functions:
The precision of the output does not track the precision of the input:
UnitStep threads element-wise over lists:
UnitStep can deal with real-valued intervals:
TraditionalForm formatting:
Generate a square wave:
Compute a step response for a continuous-time system:
Using transform methods:
Compute a step response for a discrete-time system:
Using transform methods:
Solve the time-independent Schrödinger equation with piecewise analytic potential:
This gives the probability of the random variable being in the interval [X,Y]:
Here is the resulting probability plotted:
Construct the Walsh function:
Expand into UnitStep of linear factors:
Convert into Piecewise:
Integrate over finite and infinite domains:
Symbolic preprocessing of functions containing UnitStep can be time-consuming:
Limit does not give UnitStep as a limit of smooth functions:
Differentiating Abs does not yield UnitStep:
New in 4
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team