October 2006
Intermediate to advanced
888 pages
16h 55m
English
I’m very good at integral and differential calculus...
—W. S. Gilbert, The Pirates of Penzance, Act 1
If you want to estimate the value of a definite integral, there is a time-tested technique for doing so. This is what the calculus student will remember as a Riemann sum.
The integrate method shown here takes beginning and ending values for the dependent variable as well as an increment. The fourth parameter (which is not really a parameter) is a block. This block should evaluate a function based on the value of the dependent variable passed into that block. (Here we are using “variable” in the mathematical sense, not in the computing sense.) It is not necessary to define a function to call ...
Read now
Unlock full access