represents the domain of real numbers, as in x∈Reals.
Reals
represents the domain of real numbers, as in x∈Reals.
Details
- x∈Reals evaluates immediately if x is a numeric quantity.
- Simplify[expr∈Reals,assum] can be used to try to determine whether an expression corresponds to a real number under the given assumptions.
- (x1|x2|…)∈Reals and {x1,x2,…}∈Reals test whether all xi are real numbers.
- Within Simplify and similar functions, objects that satisfy inequalities are always assumed to be real.
- Reals is output in StandardForm or TraditionalForm as
. This typeset form can be input using
reals
.
Examples
open all close allBasic Examples (3)
Scope (5)
Test domain membership of a numeric expression:
Element[Sin[7], Reals]Make domain membership assumptions:
Refine[Im[x + I y], Element[x | y, Reals]]Integrate[Abs[1 - Abs[x + 2]], x, Assumptions -> Element[x, Reals]]Specify the default domain over which a function should work:
Reduce[E ^ x - 2x == 3, x, Reals]Resolve[Exists[x, y == Sqrt[x]], Reals]PiecewiseExpand[Abs[x + Sign[y]], Reals]Test whether several numbers are real numbers:
(x | y | 1)∈RealsIf any number is explicitly non-real, the result is False:
{x, y, I}∈RealsTraditionalForm formatting:
Reals//TraditionalFormProperties & Relations (3)
Reals contains Rationals, Integers, and Primes:
Refine[Element[x, Reals], Element[x, #]]& /@ {Rationals, Integers, Primes}Reals is contained in Complexes:
Refine[Element[x, Complexes], Element[x, Reals]]Reals neither contains nor is contained in Algebraics:
{Element[#, Reals], Element[#, Algebraics]}& /@ {Pi, I}Related Guides
History
Introduced in 1999 (4.0) | Updated in 2017 (11.2)
Text
Wolfram Research (1999), Reals, Wolfram Language function, https://reference.wolfram.com/language/ref/Reals.html (updated 2017).
CMS
Wolfram Language. 1999. "Reals." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/Reals.html.
APA
Wolfram Language. (1999). Reals. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Reals.html
BibTeX
@misc{reference.wolfram_2026_reals, author="Wolfram Research", title="{Reals}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Reals.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_reals, organization={Wolfram Research}, title={Reals}, year={2017}, url={https://reference.wolfram.com/language/ref/Reals.html}, note=[Accessed: 13-June-2026]}