Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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) [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
Step: 1
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started