What ODE is solved by the following MATLAB code and what method is used? Include the initial
Question:
What ODE is solved by the following MATLAB code and what method is used? Include the initial condition in your answer.
Transcribed Image Text:
1 function problem4_23 2 3 4 nsteps = 100; y = 1; t = 0; h = 0.01; 5 6 g=figure; 7 plot(t, y, 'ob') 8 xlabel('t), ylabel ('y') 9 hold on 10 for i=1:nsteps 11 12 13 14 a = feval(y); b = feval (y+h/2*a); c = feval (y+h/2*b); d = feval (y+h*c);
Step by Step Answer:
This question has not been answered yet.
You can Ask your question!
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted:
Students also viewed these Engineering questions
-
What mathematical problem is solved by the following MATLAB code? 1 function x = problem3_8 2 itmax = 100; tol = 0;, x0 = 1; 3 for k=1:itmax 4 5 6 8 9 x=x-f (x)/fprime (x); r=f(x); if abs (r)
-
Linda is saving for retirement and would like to accumulate $800,000 at her retirement. She currently has $30,000 saved and would like to work for another 25 years. She plans to save $3500 at the end...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Explain the Mechanism & routes of administration of SEDDS (Self emulsifying drug delivery system).
-
If you were offered the position of a CSO for a large organization, what reporting relationship would you want? Under what circumstances do you think a reporting relationship to the CIO is the best...
-
How might the accounting for an advertising campaign expenditure of $200,000 in the first quarter of a company's fiscal year differ between the integral theory and the discrete theory of interim...
-
A liquid is contained in a pipe that is closed at one end as shown in Fig. P7.85. Initially the liquid is at rest, but if the end is suddenly opened the liquid starts to move. Assume the pressure...
-
The following balances are from the accounts of Todd Machining Company: Direct materials purchased during the year amount to $598,000, and the cost of goods sold for the year was $2,172,400. Required...
-
1. Analyze and explain the theoretical concepts related to the balance of payments of a country? - A country has exports of $20 billion, imports of $25 billion, net transfers from abroad of $1...
-
Consider the solution of the differential equation by an implicit Euler scheme. Determine the form of the residual and Jacobian that you would need to compute the values for time step i + 1. y"+yy +...
-
Consider nonlinear ordinary differential equation subject to initial conditions Convert this problem into a system of autonomous equations and initial conditions. y" + (xy)" + cos(x)y = y
-
Papadopoulou SA manufactures electrical meters. For August, there were no opening stocks of direct (raw) materials and no opening and closing work in progress. Papadopoulou uses a JIT production...
-
The pole-zero map and the Nyquist plot of the loop transfer function GH(s) of a feedback system are shown below. For this (a) both open loop and closed loop systems are stable. (b) open loop system...
-
Consider the following open loop frequency response of a unity feedback system. The gain and phase margin of the system are respectively (a) \(0.00 \mathrm{~dB},-180^{\circ}\) (b) \(3.86...
-
Consider the following statements for a counter clockwise Nyquist path. 1. For a stable closed loop system, the Nyquist plot of \(\mathrm{G}(s) \mathrm{H}(s)\) should encircle \((-1, j 0)\) point as...
-
The open loop transfer function of a unity feedback control system is given as \(\mathrm{G}(s)=\frac{a s+1}{s^{2}}\). The value of ' \(a\) ' to give a phase margin of \(45^{\circ}\) is equal to (a)...
-
The asymptotic Bode plot of the transfer function \(\frac{\mathrm{K}}{1+\frac{s}{a}}\) is given in figure. The error in phase angle and \(\mathrm{dB}\) gain at a frequency of \(\omega=0.5 a\) are...
-
A corporate bond's price is listed at 102.801. It matures in 3 years, has a coupon rate of 5%, and pays interest semiannually. What is the bond's yield to maturity?
-
How many years will it take a $700 balance to grow into $900 in an account earning 5%?
-
In a pipeline that connects a production oilfield to a tanker terminal, oil having density 1.85 slug/ft 3 and viscosity 6 x 10 3 slug/(ft s) flows through a 48-in.-diameter pipeline at 6 mph. What...
-
For the parabolic pressure profile in Equation (6.7), show that the average flow velocity is half the maximum value [Equation (6.11)]. Equation 6.7 Equation 6.11 (1 (5) (Special case: Re < 2000) v =...
-
The average velocity of blood flowing in a certain 4-mm-diameter artery in the human body is 0.28 m/s. Calculate the Reynolds number and determine whether the flow is laminar or turbulent. The...
-
The following trial balance of Teal Mountain Co. does not balance. Teal Mountain Co. Trial Balance June 30, 2022 Debit Credit Cash $1,660 Accounts Receivable $2,440 Supplies 1,200 Equipment 2,300...
-
How to do journal entries ? September 21: A part-time worker was hired at $15 per hour to work the customer service desk. One pay period is the 1st of the month through the 15th, and the other is the...
-
Bernard Madoff, a key figure on Wall Street, founded Bernard L. Madoff Investment Securities LLC in 1960, known as Madoff Securities. This establishment marked an early adoption of computer...
Study smarter with the SolutionInn App