PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
SEARCH MATHEMATICA 8 DOCUMENTATION
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
Mathematica
>
Mathematics and Algorithms
>
Formula Manipulation
>
Assumptions and Domains
>
Built-in
Mathematica
Symbol
Simplifying with Assumptions
Using Assumptions
Tutorials »
|
Simplify
MemberQ
IntegerQ
Assumptions
Condition
PatternTest
Equal
Less
Divisible
CoprimeQ
Booleans
Primes
Exists
ForAll
See Also »
|
Assumptions and Domains
Formula Manipulation
Number Recognition
Number Theory
More About »
Element
(
)
Element
[
x
,
dom
]
or
x
dom
asserts that
x
is an element of the domain
dom
.
Element
[{
x
1
,
x
2
,
...
},
dom
]
asserts that all the
x
i
are elements of
dom
.
Element
[
patt
,
dom
]
asserts that any expression matching the pattern
patt
is an element of
dom
.
MORE INFORMATION
x
dom
can be entered as
x
Esc
el
Esc
dom
or
x
\[Element]
dom
.
Element
can be used to set up assumptions in
Simplify
and related functions.
Possible domains are:
Algebraics
algebraic numbers
Booleans
True
or
False
Complexes
complex numbers
Integers
integers
Primes
prime numbers
Rationals
rational numbers
Reals
real numbers
x
dom
if possible evaluates immediately when
x
is numeric.
(
x
1
|
x
2
|
...
)
dom
is equivalent to
{
x
1
,
x
2
,
...
}
dom
.
{
x
1
,
x
2
,
...
}
dom
evaluates to
(
x
1
|
x
2
|
...
)
dom
if its truth or falsity cannot immediately be determined.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
Test whether
is an element of the reals:
Express domain membership for an expression:
Enter using
Esc
elem
Esc
:
Test whether
is an element of the reals:
In[1]:=
Out[1]=
Express domain membership for an expression:
In[1]:=
Out[1]=
Enter using
Esc
elem
Esc
:
In[1]:=
Out[1]=
Scope
(6)
Test domain membership:
Make domain membership assumptions:
Test domain membership using assumptions:
Specify variable domains:
Specify assumptions on objects matching a pattern:
TraditionalForm
formatting:
Properties & Relations
(1)
For a single variable, the negation of
Element
is automatically converted to
NotElement
:
For multiple variables, the negation of
Element
is not automatically simplified:
Use
LogicalExpand
to find the representation in terms of
NotElement
:
Possible Issues
(1)
When domain membership cannot be decided the
Element
statement remains unevaluated:
SEE ALSO
Simplify
MemberQ
IntegerQ
Assumptions
Condition
PatternTest
Equal
Less
Divisible
CoprimeQ
Booleans
Primes
Exists
ForAll
TUTORIALS
Simplifying with Assumptions
Using Assumptions
MORE ABOUT
Assumptions and Domains
Formula Manipulation
Number Recognition
Number Theory
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 4 | Last modified in 5