NHoldRestCopy to clipboard.
✖
NHoldRest
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Prevent N from affecting all but the first argument of a function:

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

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


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

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

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

Use Part symbolically:

https://wolfram.com/xid/0bdpzoqlu-jk3nhc

Using N does not affect the specified parts:

https://wolfram.com/xid/0bdpzoqlu-f4t6a8

The expression works when x is substituted with a list:

https://wolfram.com/xid/0bdpzoqlu-ripgf

Applications (1)Sample problems that can be solved with this function
Define a function that represents the real-valued root for positive
and positive integer
:

https://wolfram.com/xid/0bdpzoqlu-cmbj0r
Prevent its second argument from being converted to real using NHoldRest:

https://wolfram.com/xid/0bdpzoqlu-ns27p
An exact representation of the cube root of 2:

https://wolfram.com/xid/0bdpzoqlu-kcmpvp


https://wolfram.com/xid/0bdpzoqlu-eocy2


https://wolfram.com/xid/0bdpzoqlu-fiwng

Properties & Relations (2)Properties of the function, and connections to other functions
Subscript by default has the NHoldRest attribute:

https://wolfram.com/xid/0bdpzoqlu-f1ruiu

This means that subscripts generally do not change under N:

https://wolfram.com/xid/0bdpzoqlu-beyfit


https://wolfram.com/xid/0bdpzoqlu-qndf3p

HoldRest prevents evaluation while NHoldRest only prevents numerical evaluation:

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

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


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


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

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


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

You can prevent both by setting both attributes:

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

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


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

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