Previous Up Next

9.4.6  Numeric evaluation

The evalf command finds floating point approximations to the numbers in an expression or a matrix (see also Section 7.3.1).

Examples

evalf(sqrt(2))
     
1.41421356237           
evalf(sqrt(2),20)
     
1.4142135623730950488           
evalf([[1,sqrt(2)],[0,1]])
     


1.01.41421356237
0.01.0


          

Previous Up Next