This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Programming / Attributes  /
Constant

  • Constant is an attribute which indicates zero derivative of a symbol with respect to all parameters.
  • Constant is used by Dt.
  • Functions f [ ... ] are taken to have zero total derivative if f has attribute Constant.
  • Mathematical constants such as Pi have attribute Constant.
  • See the Mathematica book: Section 2.5.3Section 3.5.2.

    Further Examples

    The variable c is not a constant.

    In[1]:=

    Out[1]=

    The makes c a constant under differentiation.

    In[2]:=

    The makes c a constant under differentiation.

    In[3]:=

    Out[3]=

    Now c is no longer a constant under differentiation.

    In[4]:=

    In[5]:=

    Out[5]=