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 / New in Version 3.0 / Programming  /
NHoldFirst

  • NHoldFirst is an attribute which specifies that the first argument to a function should not be affected by N.
  • See the Mathematica book: Section 2.5.3.

    Further Examples

    Usually N goes inside functions and gets applied to each of their arguments.

    In[1]:=

    Out[1]=

    This tells Mathematica not to apply N to the first argument of f.

    In[2]:=

    Now the first argument of f is left in its exact form.

    In[3]:=

    Out[3]=