NHoldAll

NHoldAll

is an attribute which specifies that none of the arguments to a function should be affected by N.

Details

  • NHoldAll, NHoldFirst, and NHoldRest are useful in ensuring that arguments to functions are maintained as exact integers, rather than being converted by N to approximate numbers.

Examples

open allclose all

Basic Examples  (1)

Prevent N from affecting the arguments of a function:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Applications  (2)

Properties & Relations  (1)

See Also

NHoldFirst  NHoldRest  NumericFunction  HoldAll

Tutorials

Introduced in 1996
(3.0)