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...
-
Pop Corporation acquired a 70 percent interest in Stu Corporation on January 1, 2011, for $1,400,000, when Stu's stockholders' equity consisted of $1,000,000 capital stock and $600,000 retained...
-
Define each of the following terms: a. Spot markets; futures markets b. Money markets; capital markets c. Primary markets; secondary markets d. Private markets; public markets e. Derivatives f....
-
Napco Refining Company processes gasoline. On June 1 of the current year, 6,400 units were 3/5 completed in the Blending Department. During June, 55,000 units entered the Blending Department from the...
-
PLEASE SPECIFY WHERE TO PUT OCB (XX,XX) ON ABOVE GRAPH ------------------- Avery Manufacturing is considering the following capital projects. The internal rate of return (IRR) has been calculated for...
-
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
-
Electronic optical equipment was purchased and installed for $335 500 ($305 000 + $30 500 GST) on 1 July 2021. The equipment is expected to give 5000 hours of usage, after which it would be disposed...
-
More info The company manufactures a variety of engines for use in farm equipment. At the beginning of the current year, Dansville estimated that its overhead for the coming year would be $300,000....
-
2. Find the partial fraction form of 4826s+3 (a) s3 +382 +2s 49 + 15s s - (b) (c) 3 (d) (e) (s - 2)(s + 3)2 2s+3 (s + 2) s238 14 - (s+1)(s2 2s+5) s3s238-3 (s + 3) (s +9) -
-
What accounts are affected, and in which direction, by the following business activity? Use account names from the expanded accounting equation. Purchase supplies for $ 2 0 0 cash. Question 2 5...
-
Answer part a, b & c i'm giving you tables aswell give me the cprrect amswers, please. Answer the following questions. Table 6-4 or Table 6-5. Note: Use appropriate factor(s) from the tables...
-
Write areportas if you were on a team supporting the financial officer who is responsible for estimating the budget for the grant proposal and explaining it with a budget narrative for the Chief to...
-
In any one-minute interval, the number of requests for a popular Web page is a Poisson random variable with expected value 300 requests. (a) A Web server has a capacity of C requests per minute. If...
-
Explain the Hawthorne effect.
-
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...
-
There is a bond on a companys books with an original term of 10 years that was purchased for a premium at its issuance, just over 2 years ago. The bond pays semi-annual interest. With the receipt of...
-
Now determine the total (net) energy absorbed for each land cover type. (12 marks) Snow Grass Water Asphalt 0100h 0.0 0200h 0.0 0300h 0.0 0400h 0.0 0500h 0.0 0600h 2.4 0700h 23.5 0800h 86.4 0900h...
-
Current Attempt in Progress Medicinal Plant Ltd. (MPL) is a privately held distributor of medicinal marijuana tablets. The Vancouver Island-based company is well established and is currently managed...
Study smarter with the SolutionInn App