EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 9780100254145
Author: Chapra
Publisher: YUZU
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 30, Problem 8P
Develop a user-friendly computer program for the simple explicit method from Sec. 30.2. Test it by duplicating Example 30.1. 3
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these 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) = 0
25.18 The following is an initial-value, second-order differential equation:
d²x + (5x) dx + (x + 7) sin (wt) = 0
dt²
dt
where
dx (0)
(0) = 1.5 and x(0) = 6
dt
Note that w= 1. Decompose the equation into two first-order differential equations. After the
decomposition, solve the system from t = 0 to 15 and plot the results of x versus time and dx/dt versus time.
Problem 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…
Chapter 30 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
Ch. 30 - 30.1 Repeat Example 30.1, but use the midpoint...Ch. 30 - Repeat Example 30.1, but for the case where the...Ch. 30 - 30.3 (a) Repeat Example 30.1, but for a time step...Ch. 30 - Repeat Example 30.2, but for the case where the...Ch. 30 - Repeat Example 30.3, but for x=1cm.Ch. 30 - 30.6 Repeat Example 30.5, but for the plate...Ch. 30 - 30.7 The advection-diffusion equation is used to...Ch. 30 - 30.8 Develop a user-friendly computer program for...Ch. 30 - 30.9 Modify the program in Prob. 30.8 so that it...Ch. 30 - Develop a user-friendly computer program to...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
(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)
|4.2| = ?
Basic Technical Mathematics
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
Factor and solve the quadratic equation: x25x6=0.
College Algebra
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
- Q-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_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_forwardFor 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')arrow_forward
- 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) = 0arrow_forwardPlease don't provide handwritten solution ......arrow_forward2. Let p 19. Then 2 is a primitive root. Use the Pohlig-Hellman method to compute L2(14).arrow_forward
- Perform the following integrations: Show complete, correct and organized solutions:arrow_forwardDon't use chatgpt will upvotearrow_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_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
Graph Theory: Euler Paths and Euler Circuits; Author: Mathispower4u;https://www.youtube.com/watch?v=5M-m62qTR-s;License: Standard YouTube License, CC-BY
WALK,TRIAL,CIRCUIT,PATH,CYCLE IN GRAPH THEORY; Author: DIVVELA SRINIVASA RAO;https://www.youtube.com/watch?v=iYVltZtnAik;License: Standard YouTube License, CC-BY