Symbolic Math Toolbox    
rsums

Interactive evaluation of Riemann sums

Syntax

Description

rsums(f) interactively approximates the integral of f(x) by Riemann sums. rsums(f) displays a graph of . 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 128.

Examples

rsums exp(-5*x^2) creates the following plot.


  rref simple