This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Interactive evaluation of Riemann sums




rsums(f) interactively approximates the integral of f(x) by Middle Riemann sums for x from 0 to 1. rsums(f) displays a graph of f(x) using 10 terms (rectangles). You can adjust the number of terms taken in the Middle Riemann sum by using the slider below the graph. The number of terms available ranges from 2 to 128. f can be a character vector or a symbolic expression. The height of each rectangle is determined by the value of the function in the middle of each interval.

rsums(f,a,b) and rsums(f,[a,b]) approximates the integral for x from a to b.

Introduced before R2006a