[b]Dynamic Riemann Sum Applet[/b] Controls:[list] [*]the interval [[b]a[/b],[b]b[/b]], [*]the number of rectangles, [b]n[/b], [*]the function, [b]f(x)[/b], and [*]where along the width of each rectangle the height is sampled from, ranging from [b]p[/b]=0 (the left side) to [b]p[/b]=1 (the right side). [/list]

What effect does it have if [b]f(x)[/b] is discontinuous? Try something like [b]f(x) = x - abs(x - 2) / (x - 2)[/b].