isnumericQ

◼ isnumericQ[x] returns True if x is a numeric quantity which may be factored out in front of a nc multiplication.

◼ Constants and parameters need to be defined as numeric quantities using snegrealconstants, snegcomplexconstants, snegintegerconstants or snegfreeindexes.

◼ In addition, numericity of an expression is checked using NumericQ and NumberQ.

◼ isnumericQ is used in all functions which behave as linear operators.

Further examples

Load sneg and declare some quantities.

<< sneg`sneg`;
snegrealconstants[x]
snegcomplexconstants[z]
snegintegerconstants[i]
snegfreeindexes[k]

    
snegfermionoperators[c]

Verify definitions.

isnumericQ[x]
x·c[CR]
isnumericQ[z]
z·c[CR]
isnumericQ[i]
i·c[CR]
isnumericQ[k]
k·c[CR]

isnumericQ[2]
isnumericQ[Pi]
isnumericQ[E]

isnumericQ[2  x]
isnumericQ[Pi x]
isnumericQ[E x]