please answer the problems below and try to do the bonus as well. This shows effects of
Fantastic news! We've Found the answer you've been seeking!
Question:
please answer the problems below and try to do the bonus as well.
Transcribed Image Text:
This shows effects of errors caused because computer representations of numbers have finite precision. It uses an example from numerical differentiation, which is covered after the midterm. In numerical differentiation, the approximate first derivative of a continuous function f can be calculated from values at two points using the formula '(x) f'(x): f(x +h)-f(x) h where means the derivative and h (the distance separating the two points) is a small number. The absolute difference (AD) between f'(x) and f'(x) is - = | r(x) _ f (x + h) = f(x)] h " AD = = a. [2 points] Setting x = 0.25, and using the cos function for f, write down an expression for the AD. [f' is the exact derivative of f, and you know that well.] b. [3 points] Now write a MATLAB function that can compute the AD for any value of x or h. [3 points] Using a suitable graph, show the output of your function with x fixed at 0.25, and with values of h ranging from 10 to 10-8. c. d. [3 points] An expression for an upper limit of the AD can be found using a Taylor series. This is h|f"(x)| EA = 2 Where " is the exact second derivative of f. Calculate and plot the expression EA on top of the expression for AD at x = 0.25, using the same range of h values. e. [2 points] Is there a portion of the graph where the EA agrees with or is larger than the AD? Over what range does this happen? f. [2 points] Is there a portion of the graph where the EA is smaller than the AD? Over what range does this happen? g. [5 points] Why would EA and AD agree in some places and not in others? If there is an h value where a switch between agreeing and not agreeing happens, is that number important? h. [BONUS 3 points] Plot the EA and AD comparisons for x = 0.1 and 7/3. Compare and contrast the three graph sets. How is each pair of EA and AD graphs different, and why? This shows effects of errors caused because computer representations of numbers have finite precision. It uses an example from numerical differentiation, which is covered after the midterm. In numerical differentiation, the approximate first derivative of a continuous function f can be calculated from values at two points using the formula '(x) f'(x): f(x +h)-f(x) h where means the derivative and h (the distance separating the two points) is a small number. The absolute difference (AD) between f'(x) and f'(x) is - = | r(x) _ f (x + h) = f(x)] h " AD = = a. [2 points] Setting x = 0.25, and using the cos function for f, write down an expression for the AD. [f' is the exact derivative of f, and you know that well.] b. [3 points] Now write a MATLAB function that can compute the AD for any value of x or h. [3 points] Using a suitable graph, show the output of your function with x fixed at 0.25, and with values of h ranging from 10 to 10-8. c. d. [3 points] An expression for an upper limit of the AD can be found using a Taylor series. This is h|f"(x)| EA = 2 Where " is the exact second derivative of f. Calculate and plot the expression EA on top of the expression for AD at x = 0.25, using the same range of h values. e. [2 points] Is there a portion of the graph where the EA agrees with or is larger than the AD? Over what range does this happen? f. [2 points] Is there a portion of the graph where the EA is smaller than the AD? Over what range does this happen? g. [5 points] Why would EA and AD agree in some places and not in others? If there is an h value where a switch between agreeing and not agreeing happens, is that number important? h. [BONUS 3 points] Plot the EA and AD comparisons for x = 0.1 and 7/3. Compare and contrast the three graph sets. How is each pair of EA and AD graphs different, and why?
Expert Answer:
Related Book For
Posted Date:
Students also viewed these algorithms questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
ttth Suppose that the sequence of bags {Bn | n N} is recursively enumerated by the computable function e(n, x) = fn(x), [7 marks] Hence prove that the set of all recursive bags cannot be recursively...
-
Which of these groups has the higher priority? b) -COH or CNH2 a) -CH3 or -CH,CH3 c) -CH;CH,CH3 d) -CH-CH CH3 or -C=N or -CH;CH,CH,CH3 CH3 e) -CHCH3 or
-
(a) Derive an expression for the speed of the electron in the nth Bohr orbit, in terms of Z, n, and the constants k, e, and h. For the hydrogen atom, determine the speed in (b) The n = 1 orbit and...
-
Graphs simplify economic ideas and make them more concrete. Consider the data available on these two Web sites: www.eia.gov/dnav/pet/pet_pri_gnd_a_epmr_pte_dpgal_w.htm provides data on the retail...
-
In a lawsuit against Angies List, Inc. for overtime pay, sales representatives were paid based on a 40-hour workweek but alleged that they routinely worked 50 to 60 hours a week without extra...
-
Zeff Company purchases a delivery van on January 1, Year 1, at a cost of $15,849. It has a useful life of four years and no estimated salvage value . When making the purchase decision, the company...
-
8. A dielectric slab of dielectric constants k is slowly inserted inside the parallel plate capacitor having plate area A and separation between plates d as shown in figure. If dimensions of...
-
Laura and Marty form a 50/50 partnership (LM Partners) in 2018. Laura contributes land with a fair market value of $800,000 and an adjusted basis of $500,000. The land is subject to a $250,000...
-
The Essentials of Technical Communication (Tebeaux & Dragga), Oxford U. Press, Third Edition - I. Please explain how a proposal is an argumentative or persuasive piece of writing -- and the four key...
-
In your experience, are managers adaptable? I am finding that older managers are not as adaptable to newer trends and are not interested in social media and other things.
-
Tasks : Your business memo should address the following scenario/prompt You business memo will be addressed to all employees at your company. It will announce a new policy of "paid time off" based on...
-
Consider a software application you use regularly. What task(s) does it improve or enable? Suggest three ways the application could be improved. Would any of these improvements be considered an...
-
(A) Find the result of the following equation: 32 4 1 A = + - 3+ 32 2 4
-
You purchased 500 shares of a stock at a price of $22.50 per share. One year later, the shares sold for $21 each. At that end of the year, a $1.50 per share dividend was paid. What is the total...
-
Use the following data to answer the next two (2) questions: Product 1 Product 2 Product 3 Direct Material Cost $25,000 $30,000 $35,000 Direct Labor Cost $30,000 $40,000 $50,000 Direct Labor Hours...
-
The following oxygen-18 data were obtained from soil samples taken at different depths in Ontario, Canada. Assuming that all the 18O was laid down during the last glacial age and that the transport...
-
A diesel engine does not use spark plugs to ignite the fuel and air in the cylinders. Instead, the temperature required to ignite the fuel occurs because the pistons compress the air in the...
-
Make up and solve an original problem. The guidelines are given in Problem VO do Ub UR VO
-
When you voice the vowel sound in "hat," you narrow the opening where your throat opens into the cavity of your mouth so that your vocal tract appears as two connected tubes. The first is in your...
-
The first and second formants when you make an "ee" vowel sound are approximately \(270 \mathrm{~Hz}\) and \(2300 \mathrm{~Hz}\). The speed of \(\mathbb{N} T\) sound in your vocal tract is...
-
Figure P16.40 shows the circular wave fronts emitted by two sources. Make a table with rows labeled P, Q, and R and columns labeled \(r_{1}, r_{2}, \Delta r\), and \(\mathrm{C} / \mathrm{D}\). Fill...
Study smarter with the SolutionInn App