EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 8220100254147
Author: Chapra
Publisher: MCG
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 5, Problem 22P
Develop a subprogram for the bisection method that minimizes function evaluations based on the pseudocode from Fig. 5.11.
Determine the number of function evaluations
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
We have designed a divide-and-conquer algorithm that runs on an input of size n. This algorithm works by spending O(1) time splitting the problem in half, then does a recursive call on each half, then spends O(n2 ) time combining the solutions to the recursive calls. On small inputs, the algorithm takes a constant amount of time. We want to see how long this algorithm takes, in terms of n to perform the task.
(a) First, write a recurrence relation that corresponds to the time-complexity of the above divide and conquer algorithm.
(b) Then, solve the relation to come with the worst-case time taken for the algorithm.
Please show all work in depth.
Problem 6.5
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.
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
For Problems 23-28, write in simpler form, as in Example 4. logbFG
Finite Mathematics for Business, Economics, Life Sciences and Social Sciences
1. How much money is Joe earning when he’s 30?
Pathways To Math Literacy (looseleaf)
Empirical versus Theoretical A Monopoly player claims that the probability of getting a 4 when rolling a six-si...
Introductory Statistics
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
- A manufacturing company produces two types of products called X and Y. Each product uses four different machines like lathe, drilling, grinding & milling operations. The profit per unit of selling X and Y are 7 RO and 3 RO respectively. Formulate a linear programming model with the given constraints to determine the production volume of each product in order to maximize the total profit (in OR). Solve the following linear programming model by using Graphical method. Subject to, 6X + 4Y < 24 X + 2Y < 6 -X + Y< 1 Y< 2 and X,Y 2 0arrow_forwardProblem 2 (25 points) (CCO 3)/MatlabGrader Develop a Matlab function that finds a root of a function g(x) starting from the given initial estimates x (-1) and x (0) with a tolerance in function of at least OK using the secant method. Name the function mySecant using as input the anonymous function g, the initial estimates x00 and x0, the maximum number of iterations to perform N, and the required tolerance in function epsok. As output, the function shall return four scalar variables: the numerical solution x, its tolerance in function tolFunc, its estimated relative error ere, and the number of iterations performed n. If the requested tolerance in function cannot be reached within N iterations, the function shall execute Matlab's error("...") function with an appropriate error message. Other than this potential error message, do not print out any results to screen or do any plotting within the function. You must minimize the number of function calls g(x) required per iteration, by…arrow_forwardIntroduce slack variables as necessary and then write the initial simplex tableau for the given linear Maximize z = x₁ + 9x2 programming problem. subject to x₁ + 2x₂ ≤ 12 6x₁ + x₂ ≤ 10 2x₁ + 2x₂ ≤8 with x₁ ≥0, X₂ ≥0 Complete the initial simplex tableau. X₁ X2 S₁ $2 $3 1 2 1 6 0 1 10 0 0 8 0 0 0 1 0 N NAT 2 ܘ ܘ ܤ N оооarrow_forward
- 5.17 and look at the two attached imagesarrow_forwardA company operates to produce two products x₁ and x2. The production process involves two main resources: labor hours and raw materials. The objective is to maximize the total profit. Below is the formulated linear programming problem: Objective Maximize Subject to Z=2x+3x2 Labour hours Raw materials x1+ 2x2 ≤ 30 x1 + x2 ≤ 20 X1, X2 NO Final Iteration Optimal Tableau Coefficients of: RHS Basic Variables Z x1 X2 X3 X4 Z 1 0 0 1 1 50 X2 0 0 1 1 -1 10 x1 0 1 0 -1 2 10arrow_forward6.1Complete the code please.arrow_forward
- What is the return type of angles function in MATLAB ?arrow_forward3. 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_forwardMATLAB..Hand written plz asap....i'll upvote surearrow_forward
- (2) Calculate by hand three iterations of the Golden-Section Search algorithm to approximate the maximum of f(x) = -0.1x² - ex. Use an initial bracket of XL = 0 and xu = 3. Show work, and for each iteration indicate the value of Xopt.arrow_forward3. 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) = 0arrow_forward1) Model the following problem with integer programming. The marketing department has been allocated a budget of $10M and would like to determine which products to develop advertising campaigns; note: at most one campaign can be launched for each product. Their goal is to maximize revenue for the company. Data is presented in the table below. Product A BCD E F 10 7 12 8 6 Projected Revenue ($M) Cost ($M) 6 1 2 5 4 3arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Solve ANY Optimization Problem in 5 Steps w/ Examples. What are they and How do you solve them?; Author: Ace Tutors;https://www.youtube.com/watch?v=BfOSKc_sncg;License: Standard YouTube License, CC-BY
Types of solution in LPP|Basic|Multiple solution|Unbounded|Infeasible|GTU|Special case of LP problem; Author: Mechanical Engineering Management;https://www.youtube.com/watch?v=F-D2WICq8Sk;License: Standard YouTube License, CC-BY
Optimization Problems in Calculus; Author: Professor Dave Explains;https://www.youtube.com/watch?v=q1U6AmIa_uQ;License: Standard YouTube License, CC-BY
Introduction to Optimization; Author: Math with Dr. Claire;https://www.youtube.com/watch?v=YLzgYm2tN8E;License: Standard YouTube License, CC-BY