4 Consider Definite Integral E E X Dx 3 E Cannot Calculate Exact Value Compute Accurate Ap Q43871193
Please code in python 3

4. Consider the definite integral I[e) = e ,-x² dx, (3) e We cannot calculate its exact value but we can compute accurate approximations to it using THle-*]. Let Th/2[e-*] – Th[e¬=*1 я(h) (4) Th/a[e¬z*] – Th/2[e-z*] Using your code, find a value of h for which q(h) is approximately equal to 4. (a) Get an approximation of the error, I[e *] – Thle *], for that particular value of h. (b) Use this error approximation to obtain the extrapolated, improved, approximation (Th/ale ) – Tale1). Shle-*] = TAle] + 3 (5) Explain why Sh[e-*] is more accurate and converges faster to I[e“] than Thle-]. Show transcribed image text 4. Consider the definite integral I[e) = e ,-x² dx, (3) e We cannot calculate its exact value but we can compute accurate approximations to it using THle-*]. Let Th/2[e-*] – Th[e¬=*1 я(h) (4) Th/a[e¬z*] – Th/2[e-z*] Using your code, find a value of h for which q(h) is approximately equal to 4. (a) Get an approximation of the error, I[e *] – Thle *], for that particular value of h. (b) Use this error approximation to obtain the extrapolated, improved, approximation (Th/ale ) – Tale1). Shle-*] = TAle] + 3 (5) Explain why Sh[e-*] is more accurate and converges faster to I[e“] than Thle-].
Expert Answer
Answer to 4. Consider the definite integral I[e) = e ,-x² dx, (3) e We cannot calculate its exact value but we can compute accura…
OR