Mathematica 9 is now available

NHoldAll

Usage

NHoldAll 是一个属性值,用来指定一个函数的所有参数中没有会被N影响的参数.


Notes

NHoldAll, NHoldFirstNHoldRest在保证函数的参数为准确整数,而不被N转换为近似数时有用.
• 参见Mathematica 全书: 2.5.3节.
• 同时参见: NumericFunction, HoldAll.
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 any of the arguments of f.

In[2]:=  

Now both of the arguments of f are left in their exact form.

In[3]:=  

Out[3]=



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.