Example: Using the Element Of Operator
1. Use numeric and symbolic evaluation to test if 4i is a member of the set of complex numbers.
2. Use numeric and symbolic evaluation to test if -3/4 is a member of the set of rational numbers.
As expected, the numeric evaluation fails when number set ℚ is specified.
3. Use numeric and symbolic evaluation to test if 2 is a member of the set of real numbers.
4. Use numeric and symbolic evaluation to test if 1.3 is a member of the set of integer numbers.
5. Show that exact floating point representations of integers are treated by symbolic evaluation as rational numbers.
The numeric evaluation fails because only symbolic evaluation is allowed when set ℚ is specified.
The numeric evaluation fails because only symbolic evaluation is allowed when set ℚ is specified.