approximate the real root to four decimal places of x3+5x-3=0 (newton raphson method)
Given that y'=x+y with y(0) = 1 find y(0.1).h=0.05 by Euler's modified method.
Use the composite trapezoidal rule to find approximations to πΌ = β« π¬π’π§π π π π
π
with n = 1, 2, 4, and 8. Then perform Romberg extrapolation on the results.
You are given the following integral to evaluate: β«(ππ β π)π π.
Without performing any calculations, which numerical method of the following gives the
best accuracy: (1) Trapezoidal rule, (2) Simpsonβs 1/3 rule, and (3) Simpsonβs 3/8 rule?
Justify your answer
Evaluate the following integral: π° = β« ππ¬π’π§(π)π π π /π
π
(1) analytically, (2) using single application of the trapezoidal rule, (3) using composite
trapezoidal rule with n = 2 and 4. For the numerical estimates (2) and (3), determine the true
percent relative error based on (1).
Solve the following ordinary differential equation over the interval from x = 0 to 1 using a
step size of 0.25 where y(0) = 1.
π π
π π = (π + ππ)π
π
(1) Analytically.
(2) Using Eulerβs method.
(3) Using Heunβs method without iteration.
(4) Using the fourth-order RK method.
Let be a real number. Let x~2.5 be an approximate value of with absolute error
at most 0.01. The function ( )
is evaluated at instead of . Estimate the absolute error
.1.1 Use Eulerβs method with step size h = 0.1 to approximate the solution to the initial valueproblem: y'=x y, y(1)=4, atthepointsx=1.1,1.2and1.3,correcttofivedecimal
places.
2.1.2 If the analytical solution to the initial value problem in (2.1.1) is
(4) y = 1 (x2 + 7), determine
4
the %Error in the numerical method where x =1.3
2.2 A chicken cools down from 100 Β°C to 60 Β°C within 10Β
Assume that the function y(x) = f (x) + g(x) has a single local minimum in the
interval 0 <= x <= 1, at x = xm. Write
(i) a function M-file (called funct.m) and
(ii) a MATLAB statement (using the fminbnd command)
that together will compute xm and the value of y at xm.
Assume that the function y(x) = f (x) + g(x) has a single local minimum in the
interval 0 <= x <= 1, at x = xm. Write
(i) a function M-file (called funct.m) and
(ii) a MATLAB statement (using the fminbnd command)
that together will compute xm and the value of y at xm.