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.
- 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.
Examplesopen allclose all
Basic Examples (1)
If you have not assigned f to yield numerical values, then NumericQ gives misleading results:
Assign N[f[a]] to give the derivative with respect to a of the solution of an ODE at :