EBK NUMERICAL METHODS FOR ENGINEERS
EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 9780100254145
Author: Chapra
Publisher: YUZU
bartleby

Videos

Textbook Question
Book Icon
Chapter 7, Problem 23P

Develop an M-fi le function for the secant method based on Fig. 6.4 and Sec. 6.3.2. Along with the two initial guesses, pass the function as an argument. Test it by duplicating the computation from Example 6.6.

Blurred answer
Students 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')
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) = 0
Find 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 5
Knowledge Booster
Background pattern image
Mechanical Engineering
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning
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