This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / New in Version 3.x / Numerical Computation /


FilledSmallSquare N[expr] gives the numerical value of expr.

FilledSmallSquare N[expr, n] attempts to give a result with n-digit precision.

FilledSmallSquare Unless numbers in expr are exact, or of sufficiently high precision, N[expr, n] may not be able to give results with n-digit precision.

FilledSmallSquare N[expr, n] may internally do computations to more than n digits of precision.

FilledSmallSquare $MaxExtraPrecision specifies the maximum number of extra digits of precision that will ever be used internally.

FilledSmallSquare The precision n is given in decimal digits; it need not be an integer.

FilledSmallSquare n must lie between $MinPrecision and $MaxPrecision. $MaxPrecision can be set to Infinity.

FilledSmallSquare n can be smaller than $MachinePrecision.

FilledSmallSquare N[expr] gives a machine-precision number, so long as its magnitude is between $MinMachineNumber and $MaxMachineNumber.

FilledSmallSquare N[expr] is equivalent to N[expr, MachinePrecision].

FilledSmallSquare N[0] gives the number 0. with machine precision.

FilledSmallSquare N converts all non-zero numbers to Real or Complex form.

FilledSmallSquare N converts each successive argument of any function it encounters to numerical form, unless the head of the function has an attribute such as NHoldAll.

FilledSmallSquare You can define numerical values of functions using N[f[args]] := value and N[f[args], n] := value.

FilledSmallSquare N[expr, p, a] attempts to generate a result with precision at most p and accuracy at most a.

FilledSmallSquare N[expr, Infinity, a] attempts to generate a result with accuracy a.

FilledSmallSquare N[expr, Infinity, 1] attempts to find a numerical approximation to the integer part of expr.

FilledSmallSquare See Section 1.1.2, Section 1.1.4, Section 3.1.4 and Section 3.1.5.

FilledSmallSquare Implementation Notes: see Section A.9.4.

FilledSmallSquare See also: Chop, CompiledFunction, Rationalize, MachinePrecision, NHoldAll, RealDigits.

FilledSmallSquare New in Version 1; modified in 5.0.

Further Examples