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...
-
Does the equation E = mc2 conflict with the conversion of energy principle? Explain.
-
5. Calculate the population covariance and correlation of the following series: Series #1 21% 53% 83% 19% Series #2 20% 32% 80% 40% 6. Calculate the population mean, standard deviation, and skewness...
-
Explain parameters and return values in the framework of messages. Provide examples.
-
Allen Abbott has a wide-curving, uphill driveway leading to his garage. When there is a heavy snow, Allen hires a local carpenter, who shovels snow on the side in the winter, to shovel his driveway....
-
A meteorologist is 3.8 km from a thunderstorm when she sees a lightning bolt emerge from the storm. In how many seconds will she hear thunder after seeing the lightning? Assume air temperatur = 20C...
-
1. Marketing analysts use market position maps to display visually the customers perceptions of a firm in relation to its competitors regarding two attributes. Prepare a market position map for Alamo...
-
Use sticky-wage theory to explain why an increase in the expected price level shifts the aggregate supply curve.
-
\(x_{1}=30, n_{1}=225, x_{2}=40, n_{2}=317,95 \%\) confidence Construct a confidence interval for \(p_{1}-p_{2}\) at the given level of confidence.
-
Use an \(F\)-test to jointly test the relevance of the two variables \(X T R A \_X 5\) and \(X T R A \_X 6\) for the family income equation in Example 6.12 and Table 6.1. Data From Example 6.12:- To...
-
\(x_{1}=371, n_{1}=509, x_{2}=434, n_{2}=579,95 \%\) confidence Construct a confidence interval for \(p_{1}-p_{2}\) at the given level of confidence.
-
In 1985, the state of Tennessee carried out a statewide experiment with primary school students. Teachers and students were randomly assigned to be in a regular-sized class or a small class. The...
-
Test whether \(p_{1} > p_{2}\). Sample data: \(x_{1}=28, n_{1}=254\), \(x_{2}=36, n_{2}=302\), where \(\alpha=0.010\). Conduct each test at the \(\alpha\) level of significance by determining (a) the...
-
(b) 4. You are in the laboratory and have a need for compound A. You and your partner thought it would be possible to allwever, after running the reaction in the lab, compound A was not formed....
-
7. FALSE DILEMMA 8. GANDWAGON Definition: Fallacy example: How to revise argument: Definition: Fallacy example: How to revise argument:
-
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...
-
If you let go of a helium balloon, it quickly rises. As it rises, the balloon gets larger and larger until it pops. Why does the balloon expand as it rises?
-
Elephant seals do deep dives to forage for food. The energy used by the seals in diving depends on their body composition; for example, fatter seals use less energy to swim to the surface at the end...
-
Early airshipscraft that relied on large volumes of low density gas to rise from the groundwere filled with hydrogen, but safety concerns necessitated a switch to helium. When an airship made the...
Study smarter with the SolutionInn App