PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
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
Learning Center
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
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Mathematics and Algorithms
>
Formula Manipulation
>
Assumptions and Domains
>
Built-in
Mathematica
Symbol
Quantifiers
Tutorials »
|
Exists
Resolve
Conjunction
Reduce
Element
Blank
SolveAlways
TautologyQ
See Also »
|
Assumptions and Domains
Boolean Computation
Formula Manipulation
Logic & Boolean Algebra
Polynomial Systems
More About »
ForAll
(
)
ForAll
[
x
,
expr
]
represents the statement that
expr
is
True
for all values of
.
ForAll
[
x
,
cond
,
expr
]
states that
expr
is
True
for all
x
satisfying the condition
cond
.
ForAll
[{
x
1
,
x
2
,
...
},
expr
]
states that
expr
is
True
for all values of all the
.
MORE INFORMATION
ForAll
[
x
,
expr
]
can be entered as
. The character
can be entered as
Esc
fa
Esc
or
\[ForAll]
. The variable
is given as a subscript.
ForAll
[
x
,
cond
,
expr
]
can be entered as
.
In
StandardForm
,
ForAll
[
x
,
expr
]
is output as
.
ForAll
[
x
,
cond
,
expr
]
is output as
x
,
cond
expr
.
ForAll
can be used in such functions as
Reduce
,
Resolve
and
FullSimplify
.
The condition
cond
is often used to specify the domain of a variable, as in
x
Integers
.
ForAll
[
x
,
cond
,
expr
]
is equivalent to
ForAll
[
x
,
Implies
[
cond
,
expr
]]
.
ForAll
[{
x
1
,
x
2
,
...
},
...
]
is equivalent to
.
The value of
in
ForAll
[
x
,
expr
]
is taken to be localized, as in
Block
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
This states that for all
,
is positive:
In[1]:=
Out[1]=
Use
Resolve
to get a condition on real parameters for which the statement is true:
In[2]:=
Out[2]=
Reduce
gives the condition in a solved form:
In[3]:=
Out[3]=
Scope
(6)
Applications
(5)
Properties & Relations
(3)
SEE ALSO
Exists
Resolve
Conjunction
Reduce
Element
Blank
SolveAlways
TautologyQ
TUTORIALS
Quantifiers
MORE ABOUT
Assumptions and Domains
Boolean Computation
Formula Manipulation
Logic & Boolean Algebra
Polynomial Systems
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 5