| Symbolic Math Toolbox | Search  Help Desk | |
| rsums | Examples |
Interactive evaluation of Riemann sums.
rsums(f)
rsums(f) interactively approximates the integral of f(x) by Riemann sums. rsums(f) displays a graph of f(x). You can then adjust the number of terms taken in the Riemann sum by using the slider below the graph. The number of terms available ranges from 2 to 256.
rsums exp(-5*x^2) creates the following plot