EXERCISES 1. (a) If you haven't already done so, enter the following commands: f=@(t,y) 0.5*y; =...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
EXERCISES 1. (a) If you haven't already done so, enter the following commands: f=@(t,y) 0.5*y; = t=linspace (0,2,100); y=3* exp(0.5*t); %define exact solution of the ODE [t80, y80]=euler (f, [0, 2],3,80); %solve the ODE using Euler w/ 80 steps Determine the Euler's approximation for N = 800 and N 8000 and fill in the following ta- ble with the values of the approximations (yN (end)), errors (eN=y (end)-yN (end)) and ratios (eNprevious/eN) of consecutive errors at t = 2. Some of the values have already been entered based on the computations we did above. Include the table in your report, as well as the MATLAB commands used to find the entries. N 8 80 800 8000 approximation yN (end) 7.6974 error eN 0.4575 0.0504 ratio eNprev/eN N/A 9.0789 (b) Examine the last column. How does the ratio of consecutive errors relate to the number of steps used? Your answer to this question should confirm the fact that Euler's method is a "first-order" method. That is, every time the step size is decreased by a factor of k, the error is also reduced (approximately) by the same factor, k = k. (c) Recall the geometrical interpretation of Euler's method based on the tangent line. Using this geometrical interpretation, can you explain why the Euler approximations yn underestimate the solution y (that is, yn y, or equivalently, en y - yn > 0) in this particular example? EXERCISES 1. (a) If you haven't already done so, enter the following commands: f=@(t,y) 0.5*y; = t=linspace (0,2,100); y=3* exp(0.5*t); %define exact solution of the ODE [t80, y80]=euler (f, [0, 2],3,80); %solve the ODE using Euler w/ 80 steps Determine the Euler's approximation for N = 800 and N 8000 and fill in the following ta- ble with the values of the approximations (yN (end)), errors (eN=y (end)-yN (end)) and ratios (eNprevious/eN) of consecutive errors at t = 2. Some of the values have already been entered based on the computations we did above. Include the table in your report, as well as the MATLAB commands used to find the entries. N 8 80 800 8000 approximation yN (end) 7.6974 error eN 0.4575 0.0504 ratio eNprev/eN N/A 9.0789 (b) Examine the last column. How does the ratio of consecutive errors relate to the number of steps used? Your answer to this question should confirm the fact that Euler's method is a "first-order" method. That is, every time the step size is decreased by a factor of k, the error is also reduced (approximately) by the same factor, k = k. (c) Recall the geometrical interpretation of Euler's method based on the tangent line. Using this geometrical interpretation, can you explain why the Euler approximations yn underestimate the solution y (that is, yn y, or equivalently, en y - yn > 0) in this particular example?
Expert Answer:
Answer rating: 100% (QA)
a To determine the Eulers approximation for N 800 and N 8000 we need to use the Eulers method to approximate the solution of the ODE y 05y with initia... View the full answer
Related Book For
Financial and managerial accounting
ISBN: 978-1118016114
1st edition
Authors: Jerry J. Weygandt, Paul D. Kimmel, Donald E. Kieso
Posted Date:
Students also viewed these programming questions
-
a) If a stock is up 1500% from the previous year, what are the chances in percentage wise that the upward momentum will continue? b) ocgn is one of these stocks. Will it continue to move upward in...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Write a command to change the permission (others can read, owner can write and group members can execute only) of all the files and directories within the directory XYZ. Write a command to list all...
-
Crosby is known for his advocacy of zero-defects management and prevention; Crosby's Quality Vaccine consists of which three ingredients? Group of answer choices A. Determination, Education, and...
-
What states of (a) Anthracene, (b) Coronene (24) may be reached by electric dipole transitions from their (totally symmetrical) ground states? 24 Coronene
-
For the network of Fig. 7.91, VD = 9B Determine: a. ID. b. VS and VDS c. VG and VGS d. VP 18 V 750 k 1 GS 91 k 0.68 k
-
A light aircraft with a wing area of \(200 \mathrm{ft}^{2}\) and a weight of \(2000 \mathrm{lb}\) has a lift coefficient of 0.40 and a drag coefficient of 0.05. Determine the power required to...
-
La Jolla Beverage Products is considering producing a wine cooler that would be a blend of a white wine, a ros wine, and fruit juice. To meet taste specifications, the wine cooler must consist of at...
-
A Quality Management System, often called a QMS, is a set of internal rules that are defined by a collection of policies, processes, documented procedures, and records. This system defines how a...
-
A network engineer is planning to deploy a network management system (NMS) to monitor a network.Which two UDP ports should be enabled in router access control lists and firewalls so the NMS can...
-
the distence D, in feet, it takes a car traveling at x mph to come to a full stop after hitting the breaks is given by D=1.23x power 2 0.065x. What is the stopping distance for a car traveling at 40...
-
Find the center of mass for particles of mass 4 , 2 and 5 located at ( 1 , 2 ) , ( 3 , 4 ) and ( 4 , 0 ) respectively.
-
A firefighter jumps horizontally from a burning building with an initial speed at of. At what time is the angle between his velocity and acceleration vectors the greatest?
-
A bicycle tire spins with a constant speed of 14 m/s. If the diameter of the tire is 44 cm, then how long does it take to make 1 revolution? Use pi=3.14 and round to 3 decimal places
-
why is the electric charge on a solid object always explained in terms of an excess or deficit of electrons
-
If find the confidence interval confidance level se = 32 512=28 S2 11 dd = 5 = 40 11 92%. = 41 n = 100 12=200
-
We all experience emotions, but some people disguise their true feelings better than others. Do you think this is a helpful or harmful thing to do? Under what conditions do you think it would be most...
-
Selected transactions for Neve Campbell Company during its first month in business are presented below. Sept. 1 Invested $10,000 cash in the business in exchange for common stock. 5 Purchased...
-
In the long run, will net income be higher or lower under variable costing compared to absorption costing?
-
Marie Corporation manufactures a fiber optic connector. The variable cost per unit is $16. The fixed cost per unit is $9. The companys desired ROI per unit is $3. Compute the markup percentage using...
-
Consider the flow of a perfect gas along a Fanno line. Show that the pressure at the * reference state is given by the relation 1/2 m 2RT, P Ayge(y+1)
-
Air flows in an 8-cm-inside diameter pipe that is \(4 \mathrm{~m}\) long. The air enters with a Mach number of 0.45 and a temperature of \(300 \mathrm{~K}\). (a) What friction factor would cause...
-
Air enters a duct with a mass flow rate of \(35 \mathrm{lbm} / \mathrm{sec}\) at \(T_{1}=520^{\circ} \mathrm{R}\) and \(p_{1}=20 \mathrm{psia}\). The duct is square and has an area of \(0.64...
Study smarter with the SolutionInn App