Get Math Help

GET TUTORING NEAR ME!

(800) 434-2582

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

    Home / Get Math Help

    Constant Function

    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

    Constants

    Typical ranks of usage in programs

    1704th most common (1 in 350000 symbols)

    3775th most common (1 in 215000 symbols)

    History

    introduced in Version 1 (June 1988)

    Timeline

    Timeline

    Back to List | POWERED BY THE WOLFRAM LANGUAGE