WOLFRAM

represents the domain of real numbers, as in xReals.

Details

  • xReals evaluates immediately if x is a numeric quantity.
  • Simplify[exprReals,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 TemplateBox[{}, Reals]. This typeset form can be input using reals.

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

is a real number:

Out[1]=1

If is a real number, so is :

Out[1]=1

Find real solutions of an equation:

Out[1]=1

Scope  (5)Survey of the scope of standard use cases

Test domain membership of a numeric expression:

Out[1]=1

Make domain membership assumptions:

Out[1]=1
Out[2]=2

Specify the default domain over which a function should work:

Out[1]=1
Out[2]=2
Out[3]=3

Test whether several numbers are real numbers:

Out[1]=1

If any number is explicitly non-real, the result is False:

Out[2]=2

TraditionalForm formatting:

Properties & Relations  (3)Properties of the function, and connections to other functions

Reals contains Rationals, Integers, and Primes:

Out[1]=1

Reals is contained in Complexes:

Out[1]=1

Reals neither contains nor is contained in Algebraics:

Out[1]=1
Wolfram Research (1999), Reals, Wolfram Language function, https://reference.wolfram.com/language/ref/Reals.html (updated 2017).
Wolfram Research (1999), Reals, Wolfram Language function, https://reference.wolfram.com/language/ref/Reals.html (updated 2017).

Text

Wolfram Research (1999), Reals, Wolfram Language function, https://reference.wolfram.com/language/ref/Reals.html (updated 2017).

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.

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

Wolfram Language. (1999). Reals. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Reals.html

BibTeX

@misc{reference.wolfram_2025_reals, author="Wolfram Research", title="{Reals}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Reals.html}", note=[Accessed: 25-March-2025 ]}

@misc{reference.wolfram_2025_reals, author="Wolfram Research", title="{Reals}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Reals.html}", note=[Accessed: 25-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_reals, organization={Wolfram Research}, title={Reals}, year={2017}, url={https://reference.wolfram.com/language/ref/Reals.html}, note=[Accessed: 25-March-2025 ]}

@online{reference.wolfram_2025_reals, organization={Wolfram Research}, title={Reals}, year={2017}, url={https://reference.wolfram.com/language/ref/Reals.html}, note=[Accessed: 25-March-2025 ]}