Question: Write computer code finding integrals numerically by following methods. For all methods, obtain a table which contains number of data N, integration result for
Write computer code finding integrals numerically by following methods. For all methods, obtain a table which contains number of data N, integration result for current N number, and error between current integration result and exact analytical solution. Use N = 5, 10,50, 100, 1000 values for a) and b) sections. Use N 5,9, 49,99, 999 values for c) section where N indicates number of sample points which taken from the function. a) Directly use function values for each interval, S f(x)dx = Ef(x)Axi b) Trapezodial rule. c) Simpson's 1/3 rule. fi(x) = 4x3 + 5x + x - 2; x e [1,5] x2 2x3 + 3 * E [2, 20] f3(x) = 2x2e-*; x [0,4] f2(x) =
Step by Step Solution
There are 3 Steps involved in it
1 For function f1 4x3 5x2 x2 Method 1 Direct value Method RESULT Method 2 Trap... View full answer
Get step-by-step solutions from verified subject matter experts
