NumericFunction
✖
NumericFunction
is an attribute that can be assigned to a symbol f to indicate that f[arg1,arg2,…] should be considered a numeric quantity whenever all the argi are numeric quantities.
Details

- Most standard built‐in mathematical functions have the attribute NumericFunction.
- NumericQ checks the NumericFunction attribute of every function it encounters.
- If you assign the attribute NumericFunction to a function that does not yield numerical values, then NumericQ will give misleading results. »
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Log has the NumericFunction attribute:

https://wolfram.com/xid/0i1roredu-ednz20

When Log has an argument that is a number, constant, or numeric, the result is numeric:

https://wolfram.com/xid/0i1roredu-bd97xu

In most cases when NumericQ[expr] gives True, then N[expr] yields an explicit number:

https://wolfram.com/xid/0i1roredu-j21w3g

Scope (1)Survey of the scope of standard use cases
Define f to be a numeric function:

https://wolfram.com/xid/0i1roredu-c5q58q
If you have not assigned f to yield numerical values, then NumericQ gives misleading results:

https://wolfram.com/xid/0i1roredu-kdhzai


https://wolfram.com/xid/0i1roredu-i31uv6

Assign f to evaluate for arguments that are approximate numbers:

https://wolfram.com/xid/0i1roredu-f1h4mc

https://wolfram.com/xid/0i1roredu-giye0w

Applications (2)Sample problems that can be solved with this function
Consider the following two function definitions, where one has the NumericFunction attribute:

https://wolfram.com/xid/0i1roredu-p67kyy
Define a function that evaluates faster for numeric input than for arbitrary input:

https://wolfram.com/xid/0i1roredu-vec6av
The evaluation of is faster when it is able to recognize that its argument can be treated as numeric:

https://wolfram.com/xid/0i1roredu-pzlq29


https://wolfram.com/xid/0i1roredu-mnae8i

Define a function that can represent an exact value:

https://wolfram.com/xid/0i1roredu-i4ej2
Assign N[f[a]] to give the derivative with respect to a of the solution of an ODE at :

https://wolfram.com/xid/0i1roredu-ld2vt2
Assign f for approximate numbers:

https://wolfram.com/xid/0i1roredu-fukj22
f[1] does not evaluate but represents a number:

https://wolfram.com/xid/0i1roredu-oxzeo


https://wolfram.com/xid/0i1roredu-jdlof0

It will work with any precision (within reasonable limits!):

https://wolfram.com/xid/0i1roredu-818aj


https://wolfram.com/xid/0i1roredu-bxhtp6

Properties & Relations (2)Properties of the function, and connections to other functions
Sin has the attribute NumericFunction:

https://wolfram.com/xid/0i1roredu-jmfe8

The NumericFunction attribute informs NumericQ that Sin[1] can be converted into a number when using N:

https://wolfram.com/xid/0i1roredu-drgdkq

NumericQ can return True without having to evaluate N[Sin[1]]:

https://wolfram.com/xid/0i1roredu-objskq

Note that NumberQ returns False:

https://wolfram.com/xid/0i1roredu-qs11yl

Some of the system symbols that are numeric functions:

https://wolfram.com/xid/0i1roredu-w3uc59

Wolfram Research (1996), NumericFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/NumericFunction.html.
Text
Wolfram Research (1996), NumericFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/NumericFunction.html.
Wolfram Research (1996), NumericFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/NumericFunction.html.
CMS
Wolfram Language. 1996. "NumericFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NumericFunction.html.
Wolfram Language. 1996. "NumericFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NumericFunction.html.
APA
Wolfram Language. (1996). NumericFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumericFunction.html
Wolfram Language. (1996). NumericFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumericFunction.html
BibTeX
@misc{reference.wolfram_2025_numericfunction, author="Wolfram Research", title="{NumericFunction}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/NumericFunction.html}", note=[Accessed: 14-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_numericfunction, organization={Wolfram Research}, title={NumericFunction}, year={1996}, url={https://reference.wolfram.com/language/ref/NumericFunction.html}, note=[Accessed: 14-March-2025
]}