Previous Up Next

5.64.6  Numeric evaluation: evalf

evalf takes as argument an expression or a matrix.
evalf returns the numeric value of this expression or of this matrix.
Input:

evalf(sqrt(2))

Output:

1.41421356237

Input:

evalf([[1,sqrt(2)],[0,1]])

Output:

[[1.0,1.41421356237],[0.0,1.0]]

Previous Up Next