23.1.3 Approximate evaluation
The evalf or
approx
command evaluates a symbolic expression to a
numeric approximation, if possible (see Section 7.3.1).
The approximation is to Digits
digits (see Section 2.5.1),
this can be changed with an optional second argument.
Examples
Assuming that in the CAS configuration Digits=7,
so hardware floats are used, and 7 digits are displayed:
You can change the number of digits in a command line by assigning
the variable DIGITS or Digits.
DIGITS:=20:;
evalf(sqrt(2)) |