NHoldFirst
✖
NHoldFirst
is an attribute which specifies that the first argument to a function should not be affected by N.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Prevent N from affecting the first argument of a function:

https://wolfram.com/xid/0i1rxhmbq-cpm2h

https://wolfram.com/xid/0i1rxhmbq-k3vhc6


https://wolfram.com/xid/0i1rxhmbq-fti8wk

Scope (2)Survey of the scope of standard use cases
System symbols with the NHoldFirst attribute:

https://wolfram.com/xid/0i1rxhmbq-l9p1c

The zero of the zeta function on the critical line with the imaginary part greater than
:

https://wolfram.com/xid/0i1rxhmbq-jdf9md

N does not affect the index :

https://wolfram.com/xid/0i1rxhmbq-w95c5

When the second argument is numeric, N evaluates numerically:

https://wolfram.com/xid/0i1rxhmbq-l10tta

Applications (1)Sample problems that can be solved with this function

https://wolfram.com/xid/0i1rxhmbq-idzc3k
Set the NHoldFirst attribute so that remains an integer:

https://wolfram.com/xid/0i1rxhmbq-cm44jd
A symbolic representation of an inverse of :

https://wolfram.com/xid/0i1rxhmbq-eyv8qp

This remains unmodified with N:

https://wolfram.com/xid/0i1rxhmbq-g2qxu7

With a numeric value of x, the function binv evaluates numerically:

https://wolfram.com/xid/0i1rxhmbq-ba5pum

Properties & Relations (1)Properties of the function, and connections to other functions
HoldFirst prevents evaluation while NHoldFirst only prevents numerical evaluation:

https://wolfram.com/xid/0i1rxhmbq-2rlzr

https://wolfram.com/xid/0i1rxhmbq-dqg7


https://wolfram.com/xid/0i1rxhmbq-cbp2j8


https://wolfram.com/xid/0i1rxhmbq-m8utr

https://wolfram.com/xid/0i1rxhmbq-cj9ifj


https://wolfram.com/xid/0i1rxhmbq-dipegk

You can prevent both by setting both attributes:

https://wolfram.com/xid/0i1rxhmbq-dvxl89

https://wolfram.com/xid/0i1rxhmbq-csslcd


https://wolfram.com/xid/0i1rxhmbq-y401c

Wolfram Research (1996), NHoldFirst, Wolfram Language function, https://reference.wolfram.com/language/ref/NHoldFirst.html.
Text
Wolfram Research (1996), NHoldFirst, Wolfram Language function, https://reference.wolfram.com/language/ref/NHoldFirst.html.
Wolfram Research (1996), NHoldFirst, Wolfram Language function, https://reference.wolfram.com/language/ref/NHoldFirst.html.
CMS
Wolfram Language. 1996. "NHoldFirst." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NHoldFirst.html.
Wolfram Language. 1996. "NHoldFirst." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NHoldFirst.html.
APA
Wolfram Language. (1996). NHoldFirst. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NHoldFirst.html
Wolfram Language. (1996). NHoldFirst. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NHoldFirst.html
BibTeX
@misc{reference.wolfram_2025_nholdfirst, author="Wolfram Research", title="{NHoldFirst}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/NHoldFirst.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_nholdfirst, organization={Wolfram Research}, title={NHoldFirst}, year={1996}, url={https://reference.wolfram.com/language/ref/NHoldFirst.html}, note=[Accessed: 29-March-2025
]}