Q2 (MATLAB) (a) Write a code for polynomial interpolation in the Lagrange basis by H&f(IN) the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q2 (MATLAB) (a) Write a code for polynomial interpolation in the Lagrange basis by H&f(IN) the barycentric formula pn(x) = n fak k-0 2-Ik sin distinct points {k}_o. Let f(x)=e-5 sin sin k-02-2k mula is pn(x) = 1 II-0,14k (*k - x) on [0.16, 0.317]. Construct 11, where #k 21, and 31 (n = 10, 20, 30) Chebyshev interpolation points on this interval. Evaluate and compare pio(x), P20(x), P30(x), and f(x) at x = 0.2, 0.25, and 0.3. 12-10 + (-1) (b) Simplify the code in part (a) for Chebyshev points, for which the barycentric for- 1 f(zo) + ' -1 (-1)*f(x) + 1 (-1)"(2) 22-10 k=1 I-In (equivalently, letting #40 = 1, I-Ik n-1 2k=1 I-Ik + k = (-1)^, and n = (-1)" in the barycentric formula in part (a)). Repeat the ex- periment in part (a). Make sure that you get the same result as in part (a). for any 1(-1)" 22-2 Q2 (MATLAB) (a) Write a code for polynomial interpolation in the Lagrange basis by H&f(IN) the barycentric formula pn(x) = n fak k-0 2-Ik sin distinct points {k}_o. Let f(x)=e-5 sin sin k-02-2k mula is pn(x) = 1 II-0,14k (*k - x) on [0.16, 0.317]. Construct 11, where #k 21, and 31 (n = 10, 20, 30) Chebyshev interpolation points on this interval. Evaluate and compare pio(x), P20(x), P30(x), and f(x) at x = 0.2, 0.25, and 0.3. 12-10 + (-1) (b) Simplify the code in part (a) for Chebyshev points, for which the barycentric for- 1 f(zo) + ' -1 (-1)*f(x) + 1 (-1)"(2) 22-10 k=1 I-In (equivalently, letting #40 = 1, I-Ik n-1 2k=1 I-Ik + k = (-1)^, and n = (-1)" in the barycentric formula in part (a)). Repeat the ex- periment in part (a). Make sure that you get the same result as in part (a). for any 1(-1)" 22-2
Expert Answer:
Answer rating: 100% (QA)
MATLAB code for polynomial interpolation in the Lagrange basis by the barycentric formula Here is the code Define the function fx f x exp5xsinxsinsinx ... View the full answer
Related Book For
Elementary Linear Algebra with Applications
ISBN: 978-0471669593
9th edition
Authors: Howard Anton, Chris Rorres
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-6. On December 12, Irene purchased the building where her store is located. She paid...
-
1. Insurance Act, RSBC 1996 c226 Read Parts 1 and 2 of this statute and describe any changes to the standard commonlaw rules for contracts that you notice. 2. KP Pacific Holdings Ltd. and Churchland...
-
When a car is moving in reverse, backing from a driveway, the driver applies the brakes. In what direction is the car's acceleration?
-
Ganesh Ltd. issued prospectus inviting applications for 10,000 equity shares of 10 each, payable as follows: The issue is fully subscribed. Pass journal entries in the books of Ganesh Ltd., assuming...
-
Consider the home hemodialysis product. (a) Complete Exercise 24.4; that is, design a hemodialysis device that lowers the urea concentration in the blood to \(0.3 \mathrm{mg} / \mathrm{cm}^{3}\),...
-
Holdaway Company is preparing financial statements for the calendar year 2012. The following totals for each account have been verified as correct: Office Supplies on Hand. . . . . . . . . . . . . ....
-
Describe the principal advantages of alternative dispute resolution. While a mediated settlement is not binding on the parties, it brings with it certain benefits. What are they? What are the...
-
You own a flooring company that sells the following items. Product Premium Carpet Basic Carpet Luxury Vinyl Flooring Standard Vinyl Flooring Delivery Fee Installation Price $4.00 / square ft....
-
1-What is the significance of these three matrices regarding their relevance for strategic planning specific for southwest airlines. 2- Describe the key information for each and how information from...
-
The author includes the detail about Burn's district being "mostly opposed to the amendment" to help explain which earlier line?
-
How do firms strategically align their internal capabilities with external market opportunities to create a synergistic competitive advantage that is difficult for rivals to replicate ?
-
Zhang purchased a $8,000 bond that was paying a 6.50% compounded semi-annually coupon rate and had 6 more years to maturity. The yield rate at the time of purchase was 5.25% compounded semi-annually....
-
In what ways can firms harness their intangible assets, such as brand equity and intellectual property, to fortify their position in fiercely contested markets ?
-
How do firms proactively cultivate a culture of innovation and knowledge sharing to continuously renew their competitive advantage in fast-paced industries ?
-
A dish containing 145 g of water at 54.0 degrees Celsius is put in a refrigerator to cool. It is removed when the temperature ofthe water is 5.50 degrees Celsius. (Specific heat H2O(l)=4.184 j/gC. a)...
-
The relationship described in question 7 does not always appear to hold. What factors, besides the number of firms in the market, might affect margins?
-
Show that the value of the determinant does not depend on θ, using the method of this section. Sin -cos sin _ cos cos8 0 sin + cos 1
-
In each part, find the maximum and minimum values of the quadratic form subject to the constraint x21 + x22 = 1, and determine the values of x1 and x2 at which the maximum and minimum occur. 7x21 +...
-
Show that if {v1, v2,..., vr} is a linearly dependent set of vectors in a vector space V, and if vr+1,..., vn are any vectors in V, then {v1, v2,..., vr, vr+1,..., vn} is also linearly dependent.
-
Show all the steps leading to the integral balance equation (18.6) in the text. Use the following boundary conditions and verify Eq. (18.7). (i) At \(y=0, T=T_{\mathrm{S}}\). (ii) At...
-
Consider the flat-plate heat transfer to be solved by the similarity approach. Show all the details leading to Eq. (18.15). What are the boundary conditions on \(\theta\) ? Extend your MATLAB code to...
-
For fluids with \(\operatorname{Pr} <1\) the velocity profile is assumed to be a cubic for \(y
Study smarter with the SolutionInn App