Mathematica 9 is now available
 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]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.