EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 9780100254145
Author: Chapra
Publisher: YUZU
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 5, Problem 26P
Develop a function for bisection in a similar fashion to Fig. 5.10. However, rather than using the maximum iterations and Eq. (5.2), employ of Eq. (5.5) up to the next highest integer. Test your function by solving Example 5.3 using
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
For the DE: dy/dx=2x-y y(0)=2 with h=0.2, solve for y using each method below in the range of 0 <= x <= 3:
Q1) Using Matlab to employ the Euler Method (Sect 2.4)
Q2) Using Matlab to employ the Improved Euler Method (Sect 2.5
close all
clear all
% Let's program exact soln
for i=1:5
x_exact(i)=0.5*i-0.5;
y_exact(i)=-x_exact(i)-1+exp(x_exact(i));
end
plot(x_exact,y_exact,'b')
% now for Euler's
h=0.5
x_EM(1)=0;
y_EM(1)=0;
for i=2:5
x_EM(i)=x_EM(i-1)+h;
y_EM(i)=y_EM(i-1)+(h*(x_EM(i-1)+y_EM(i-1)));
end
hold on
plot (x_EM,y_EM,'r')
% Improved Euler's Method
h=0.5
x_IE(1)=0;
y_IE(1)=0;
for i=2:1:5
kA=x_IE(i-1)+y_IE(i-1);
u=y_IE(i-1)+h*kA;
x_IE(i)=x_IE(i-1)+h;
kB=x_IE(i)+u;
k=(kA+kB)/2;
y_IE(i)=y_IE(i-1)+h*k;
end
hold on
plot(x_IE,y_IE,'k')
x^2-5x^(1/3)+1=0
Has a root between 2 and 2.5
use bisection method to three iterations by hand.
3. Using the trial function u¹(x) = a sin(x) and weighting function w¹(x) = b sin(x) find
an approximate solution to the following boundary value problems by determining the value
of coefficient a. For each one, also find the exact solution using Matlab and plot the exact
and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution,
and (iii) plotting the solution)
a.
(U₁xx -2 = 0
u(0) = 0
u(1) = 0
b. Modify the trial function and find an approximation for the following boundary value
problem. (Hint: you will need to add an extra term to the function to make it satisfy
the boundary conditions.)
(U₁xx-2 = 0
u(0) = 1
u(1) = 0
Chapter 5 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
Ch. 5 - 5.1 Determine the real roots...Ch. 5 - 5.2 Determine the real root of:
(a) Graphically....Ch. 5 - 5.3 Determine the real root of:
(a)...Ch. 5 - Determine the roots of f(x)=1221x+18x22.75x3...Ch. 5 - Locate the first nontrivial root of sin x=x2wherex...Ch. 5 - 5.6 Determine the positive real root of (a)...Ch. 5 - 5.7 Determine the real root of:...Ch. 5 - 5.8 Find the positive square root of 18 using the...Ch. 5 - 5.9 Find the smallest positive root of the...Ch. 5 - 5.10 Find the positive real root of using the...
Ch. 5 - 5.11 Determine the real root of: (a) analytically...Ch. 5 - 5.12 Given
Use bisection to determine the...Ch. 5 - 5.13 The velocity v of a falling parachutist is...Ch. 5 - 5.14 Use bisection to determine the drag...Ch. 5 - As depicted in Fig. P5.15, the velocity of water,...Ch. 5 - 5.16 Water is flowing in a trapezoidal channel at...Ch. 5 - 5.17 You are designing a spherical tank (Fig....Ch. 5 - The saturation concentration of dissolved oxygen...Ch. 5 - 5.19 According to Archimedes principle, the...Ch. 5 - 5.20 Perform the same computation as in Prob....Ch. 5 - 5.21 Integrate the algorithm outlined in Fig. 5.10...Ch. 5 - Develop a subprogram for the bisection method that...Ch. 5 - 5.23 Develop a user-friendly program for the...Ch. 5 - Develop a subprogram for the false-position method...Ch. 5 - 5.25 Develop a user-friendly subprogram for the...Ch. 5 - 5.26 Develop a function for bisection in a similar...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
|4.2| = ?
Basic Technical Mathematics
(a) Show that (x) = x2 is an explicit solution to xdydx = 2y on the interval (, ). (b) Show that (x) = ex x is...
Fundamentals of Differential Equations (9th Edition)
Analytic Functions. Find fz=ux,y+ivx,y with u or v as given. Check by the Cauchy Reimann equations for analyti...
Advanced Engineering Mathematics
In Hamilton County, Ohio, the mean number of days needed to sell a house is 86 days (Cincinnati Multiple Listin...
STATISTICS F/BUSINESS+ECONOMICS-TEXT
Evaluate the integrals in Exercises 1–46.
1.
University Calculus: Early Transcendentals (3rd Edition)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.Similar questions
- 3. Using the trial function uh(x) = a sin(x) and weighting function wh(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx - 2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx - 2 = 0 u(0) = 1 u(1) = 0arrow_forwardFind the three unknown on this problems using Elimination Method and Cramer's Rule. Attach your solutions and indicate your final answer. Problem 1. 7z 5y 3z 16 %3D 3z 5y + 2z -8 %3D 5z + 3y 7z = 0 Problem 2. 4x-2y+3z 1 *+3y-4z -7 3x+ y+2z 5arrow_forwardThe natural exponential function can be expressed by . Determine e2by calculating the sum of the series for:(a) n = 5, (b) n = 15, (c) n = 25For each part create a vector n in which the first element is 0, the incrementis 1, and the last term is 5, 15, or 25. Then use element-by-element calculations to create a vector in which the elements are . Finally, use the MATLAB built-in function sum to add the terms of the series. Compare thevalues obtained in parts (a), (b), and (c) with the value of e2calculated byMATLAB.arrow_forward
- f(x)=-0.9x? +1.7x+2.5 Calculate the root of the function given below: a) by Newton-Raphson method b) by simple fixed-point iteration method. (f(x)=0) Use x, = 5 as the starting value for both methods. Use the approximate relative error criterion of 0.1% to stop iterations.arrow_forwardQ-2) Find the solution for the LPP below by using the graphical method? Min Z=4x1+3x2 S.to: x1+2x2<6 2x1+x2<8 x127 x1,x2 ≥ 0 Is there an optimal solution and why if not can you extract it?arrow_forwardProblem1: Solve the system of linear equations by each of the methods listed below. (a) Gaussian elimination with back-substitution (b) Gauss-Jordan elimination (c) Cramer's Rule 3x, + 3x, + 5x, = 1 3x, + 5x, + 9x3 = 2 5x, + 9x, + 17x, = 4arrow_forward
- 2. Let p 19. Then 2 is a primitive root. Use the Pohlig-Hellman method to compute L2(14).arrow_forwardGiven the data below: Xo = 1 X1= 2 x2 = 4 Axo) = 2 Ax1) = 3 Ax2 : = 8 (i) Calculate the second-order interpolating polynomial using the method of the Newton's interpolating polynomial. (ii) Use the interpolating polynomial in (i) to calculate the approximated/interpolated functional value at x = 3, i.e., (3). (iii)Calculate the percentage relative error if the true value of f(3) is 4.8.arrow_forwardA root of the function f(x) = x3 – 10x² +5 lies close to x = 0.7. Doing three iterations, compute this root using the Newton- Raphson method with an initial guess of x=1). Newton-Raphson iterative equation is given as: f(x;) Xi+1 = Xị - f'(xi)arrow_forward
- Q3) Find the optimal solution by using graphical method:. Max Z = x1 + 2x2 Subject to : 2x1 + x2 < 100 X1 +x2 < 80 X1 < 40 X1, X2 2 0arrow_forwardUse bisection to determine the drag coefficient needed so that an 80-kg parachutist has a velocity of 36 m/s after 4 s of free fall. Note: The acceleration of gravity is 9.81 m/s2 . Start with initial guesses of xl = 0.1 and xu = 0.2 and iterate until the approximate relative error falls below 2%.arrow_forward2. Solve the following ODE in space using finite difference method based on central differences with error O(h). Use a five node grid. 4u" - 25u0 (0)=0 (1)=2 Solve analytically and compare the solution values at the nodes.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage Learning
Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning
Power Series; Author: Professor Dave Explains;https://www.youtube.com/watch?v=OxVBT83x8oc;License: Standard YouTube License, CC-BY
Power Series & Intervals of Convergence; Author: Dr. Trefor Bazett;https://www.youtube.com/watch?v=XHoRBh4hQNU;License: Standard YouTube License, CC-BY