Answer
We simply use evalf to convert the result of the summation into a
floating-point number:
 | evalf(sum(1/(2*'i'), 'i' = 1..10)); |
This is an important idea: the result of one built-in function can be passed
as an argument to another built-in function.
Return to lesson.
Joseph L. Zachary
Hamlet Project
Department of Computer Science
University of Utah