6.59.6 Numeric evaluation: evalf
The evalf command finds floating point approximations to the
numbers in an expression or a matrix (see also Section 6.8.1).
-
evalf takes one mandatory and one optional argument:
-
expr, an expression or a matrix.
- Optionally, n, a positive integer representing the
significant digits (by default DIGITS, which itself has a
default value of 12; see Section 3.5.1).
- evalf(expr ⟨ n ⟩)
returns expr with all the numbers replaced by floating
point approximations to n digits.
Examples.