- An expression is considered a numeric quantity if it is either an explicit number or a mathematical constant such as Pi, or is a function that has attribute NumericFunction and all of whose arguments are numeric quantities.
- In most cases, NumericQ[expr] gives True whenever N[expr] would yield an explicit number.
Examplesopen allclose all
Basic Examples (1)
An object is numeric if all its constituents are numeric:
Some parts of the expression are numeric:
When f has the NumericFunction attribute then f[args] is numeric when args are numeric:
The system symbols that represent numerical constants:
The system symbols with the NumericFunction attribute:
Any combination of these functions with numeric arguments will be numeric:
In most cases, N[e] will not be a number since it is improbable that the arguments are correct:
Wolfram Research (1996), NumericQ, Wolfram Language function, https://reference.wolfram.com/language/ref/NumericQ.html.
Wolfram Language. 1996. "NumericQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NumericQ.html.
Wolfram Language. (1996). NumericQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumericQ.html