Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
rsums Examples

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 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.

Examples

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



[ Previous | Help Desk | Next ]