Numerical

Numerical

Numerical[ expr (, n) ] returns the approximate numerical value of an expression, with optional parameter n, the number of decimals.

Usages

Numerical[expr]

Numerical[expr] returns the approximate numerical value of an expression expr.

Example in out
The approximate value of pi. Numerical[ pi ] 3.1415926536
The numerical value of 3^2 + 9 using numerical approximation. Numerical[ 3^2 + 9] 18
The approximate value of x, where x is defined as sin(1) in the script. Numerical[x] 0.8414709848

Numerical[expr, n]

Numerical[expr, n] returns the approximate numerical value of an expression expr rounded to n decimals.

Example in out
The approximate value of x, where x is defined as sin(1) in the script, rounded to 3 decimals. Numerical[x, 3] 0.841