PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Mathematics and Algorithms
>
Mathematical Functions
>
Numerical Functions
>
Built-in
Mathematica
Symbol
Numerical Functions
Generalized Functions and Related Objects
Piecewise Functions
Tutorials »
|
UnitBox
Sign
Positive
HeavisideTheta
DiscreteDelta
KroneckerDelta
Unitize
Boole
Piecewise
See Also »
|
Conditionals
Numerical Functions
More About »
UnitStep
UnitStep
[
x
]
represents the unit step function, equal to 0 for
and 1 for
.
UnitStep
[
x
1
,
x
2
,
...
]
represents the multidimensional unit step function which is 1 only if none of the
are negative.
MORE INFORMATION
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
CLOSE ALL
Basic Examples
(3)
Evaluate numerically:
In[1]:=
Out[1]=
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Use
UnitStep
to construct piecewise functions:
In[1]:=
Out[1]=
Scope
(4)
Generalizations & Extensions
(1)
Applications
(6)
Properties & Relations
(3)
Possible Issues
(3)
SEE ALSO
UnitBox
Sign
Positive
HeavisideTheta
DiscreteDelta
KroneckerDelta
Unitize
Boole
Piecewise
TUTORIALS
Numerical Functions
Generalized Functions and Related Objects
Piecewise Functions
RELATED LINKS
Demonstrations with UnitStep
(
Wolfram Demonstrations Project
)
MathWorld
The Wolfram Functions Site
MORE ABOUT
Conditionals
Numerical Functions
New in 4
© 2008 Wolfram Research, Inc.