Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Formula Manipulation > Assumptions and Domains >

Element (Element)

Element[x, dom]
or xElementdom asserts that x is an element of the domain dom.
Element[{x1, x2, ...}, dom]
asserts that all the xi are elements of dom.
Element[patt, dom]
asserts that any expression matching the pattern patt is an element of dom.
  • xElementdom 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:
Algebraicsalgebraic numbers
BooleansTrue or False
Complexescomplex numbers
Integersintegers
Primesprime numbers
Rationalsrational numbers
Realsreal numbers
  • xElementdom if possible evaluates immediately when x is numeric.
  • (x1|x2|...)Elementdom is equivalent to {x1, x2, ...}Elementdom.
  • {x1, x2, ...}Elementdom evaluates to (x1|x2|...)Elementdom if its truth or falsity cannot immediately be determined.
Test whether pi is an element of the reals:
Express domain membership for an expression:
Enter using Esc elem Esc:
Test whether pi is an element of the reals:
In[1]:=
Click for copyable input
Out[1]=
 
Express domain membership for an expression:
In[1]:=
Click for copyable input
Out[1]=
 
Enter using Esc elem Esc:
In[1]:=
Click for copyable input
Out[1]=
Test domain membership:
Make domain membership assumptions:
Test domain membership using assumptions:
Specify variable domains:
Specify assumptions on objects matching a pattern:
TraditionalForm formatting:
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:
When domain membership cannot be decided the Element statement remains unevaluated:
New in 4 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team