Question: code is already given just help me with 2 and 3 i will givd you a like. Objective To illustrate and compare numerical integration by

Objective To illustrate and compare numerical integration by Riemann sums, the Trapezoidal Rule, and Simpson's Rule. Narrative In this project we illustrate and compare numerical integration by Riemann sums, the Trapezoidal Rule, and Simpson's Rule by looking at x=12xdx=ln2. In this project we use the command type: "type ( n,odd)" is true if n is odd and false if n is even, and "type(n,even)" is true if n is even and false if n is odd. We also tse the if/then/elif/else/end if control structure. Task 1. Open a new Maple worksheet and type the commands in the left-hand column below into it. They provide Maple some initial information. > \# Your name, today s date > \# Approximate Integration > restart; Clear Maple's memory. >f:=x1/x; Let f(x)=1/x. > NInts :=8; Let the number of intervals NInts =8. >a:=1.0;b:=2.0;dx:=(ba)/ NInts; Let a=1,b=2, and dx=(ba)/ NInts. > Actual := int (f(x),x=a..b); What is x=abf(x)dx ? a) Continue by typing the commands in the left-hand column below into your worksheet. These commands approximate our integral by Riemann sums using right-hand endpoints. b) Continue by typing the commands in the left-hand column below into your worksheet. These commands approximate our integral by the Trapezoidal Rule. c) Continue by typing the commands in the left-hand column below into your worksheet. These commands approximate our integral by Simpson's Rule. At this time, make a hard copy of your typed input and Maple's responses. Then: 2. On each of the graphs you created in Tasks 1(a), (b), and (c), sketch and shade in the region whose area approximates x=12xdx by Riemann sums, the Trapezoidal Rule, and Simpson's Rule, respectively, when n=8. 3. When n=8, which method - Riemann sums, the Trapezoidal Rule, or Simpson's Rule - provides the best estimate of x=12xdx=ln2 ? Which provides the worst
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
