Hi I have an assignment were I need to find the area under a function x^2 by using middlesums/riemann sum. the output needs to be a table with the number of rows to the left, the number of intervals under the curve in the middle and the approximated area to the right. the number of intervals(n) with regards to rows(N) is n=2^(N-1). How do I make a loop where if fx I want 10 rows I get a table were the 1st row shows the area under the curve with 1 interval then row 2 with 2 intervals then row 3 with 4 etc. So far I have the following, which is a little modification from a previous assignment