NextThe following expressions give TrueTrue in the NumericQNumericQ test:
Map[NumericQ, {Rational[2, 3], Complex[2, 3], Root[1 + 2 #1 + #1^5 &, 1], RootSum[-7 - 3 #1 + #1^5 &, Sin[#1] &]}] we obtain:
(* Out: {True, True, True, True} *) However the heads RationalRational, ComplexComplex, RootRoot and RootSumRootSum do not have the attribute NumericFunction, for example if we evaluateNumericFunction:
Attributes[Root] we obtain:
(* Out: {NHoldAll, Protected, ReadProtected} *) ... but NumericQ still returns True when applied to them.
Is there a way to obtain a list of all the posiblepossible heads hh of expressions h[args]h[args] that do NotNOT have the NumericFunctionNumericFunction attribute, and yet will give TrueTrue in the test NumericQ[h[args]]NumericQ[h[args]]?