Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Numerical Analysis. Using python, can you show how to solve this problem step by step and provide the code. Using a) Euler method,b) trapezoid rule,

Numerical Analysis.
Using python, can you show how to solve this problem step by step and provide the code.
Using a) Euler method,b) trapezoid rule, and c) composite Simpsons 1/3 rule.
Let the mesh size be h = 0.05 and compare the numerical solutions with the exact one. Which method give the best estimate and which one give the worst estimate? How many points are required at least to estimate the integral with error 10^10 in each method? Please verify your answer through numerical tests.
image text in transcribed
Problem 1 (10 pts) Numerically calculate the integral 01xexdx by using Euler method, trapezoid rule, and composite Simpson's 31 rule. Let the mesh size be h=0.05 and compare the numerical solutions with the exact one. Which method give the best estimate and which one give the worst estimate? How many points are required at least to estimate the integral with error 1010 in each method? Please verify your answer through numerical tests. (Hint: for Euler method yi=yi1+hf(ti1,yi1), error y(ti)yi2LhM(eL(tit0)1), where M is an upper bound on the second derivative of y on the given interval and L is the Lipschitz constant of f )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

love of humour, often as a device to lighten the occasion;

Answered: 1 week ago

Question

orderliness, patience and seeing a task through;

Answered: 1 week ago

Question

well defined status and roles (class distinctions);

Answered: 1 week ago