back

One way of calculating the Riemann sum using your calculator is to use the sum() and seq() commands.  So, you could use a formula such as:

sum(seq(f(xi)Δx,i,1,n))

If we wanted the Riemann sum for the area under y=sin(x) from 0 to Pi using 100 rectangles with right endpoints, we would have

sum(seq(sin(0+(Pi-0)x/100)*(Pi-0)/100,x,1,100)

or if you are lazy and don't read all of that: