constant function
Assuming "constant function" is a Wolfram Language symbol | Use as instead

Input interpretation

Constant (Wolfram Language symbol)

Usage

Constant is an attribute that indicates zero derivative of a symbol with respect to all parameters.

Basic examples

π is a mathematical constant representing a number:
In[1]:=Attributes[π]
Out[1]={Constant, Protected, ReadProtected}
π is not explicitly a number:
In[2]:=NumberQ[π]
Out[2]=False
π is numeric and evaluates to a number with N:
In[3]:=NumericQ[π]
Out[3]=True
In[4]:=N[π, 32]
Out[4]=3.1415926535897932384626433832795
Define f to be a constant function for total derivatives computed with Dt:
In[1]:=SetAttributes[f, Constant]
In[2]:=Dt[g[x, y] f[x, y]]
Out[2]=f[x, y] (Dt[y] g^(0, 1)[x, y] + Dt[x] g^(1, 0)[x, y])

Attribute

Protected

Relationships with other entities

Related symbols

Constants
Relationships with other entities

Typical ranks of usage in programs

Frequency of usage in all corpuses

1704th most common (1 in 350000 symbols)

Rank of usage in the Wolfram documentation

3775th most common (1 in 215000 symbols)

History

Version introduced or modified

introduced in Version 1 (June 1988)

Timeline

Timeline

Related Queries: