Question: fi(x) = 4x3 + 5x + x 2; x [1,5] x2 f2(x) [2, 20] 2x3 + 3' f3(x) = 2xe-*; x [0,4] i) Calculate
![fi(x) = 4x3 + 5x + x 2; x [1,5] x2 f2(x)](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2021/05/609670243cee3_resim20210508140400.png)
fi(x) = 4x3 + 5x + x 2; x [1,5] x2 f2(x) [2, 20] 2x3 + 3' f3(x) = 2xe-*; x [0,4] i) Calculate integrals for above funtions analytically. ii) 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, Jfc) dx f() b) Trapezodial rule. c) Simpson's 1/3 rule. iii) Make comments about results and comparisons about methods. 2.
Step by Step Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
a integrals for the fuctions given are derived below b matlab deinne the function f1 using function handle f1x 4x35x2x2 a1 b5 dispTable for simpson for the function f1 fprintfN I err fprintf for N2510... View full answer
Get step-by-step solutions from verified subject matter experts
