This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: a to b is the number Z b a f ( x ) dx = lim n n X k =1 f ( t k ) x provided that this limit exists. Example 0.3. Consider the functions f ( x ) = ex and g ( x ) = 1 1+ x 2 on the interval [1 , 2]. Using left Riemann sums, we created the table to below to approximate R 2 1 f ( x ) dx and R 2 1 g ( x ) dx using various values of n . The last row is the exact answer. ex 1 1+ x 2 n = 5 n = 10 n = 20 R 2 1 dx Table 1: Approximating with Left Riemann Sums 3. Fill in the table that you just created with the appropriate values rounded to 4 decimal places. It may help to use Mathematica, Matlab or Maple to accomplish this task. In Mathematica, the code LeftSum[n_]:=Sum[f[a+(i1)*(ba)/n]*(ba)/n,{i,1,n}] will calculate a left Riemann sum for f [ x ] on [ a,b ]. Recall N[ ] will give you a decimal approximation in Mathematica....
View
Full
Document
This note was uploaded on 04/19/2011 for the course MATH 21126 taught by Professor Johnson during the Spring '11 term at Carnegie Mellon.
 Spring '11
 Johnson
 Math

Click to edit the document details