Write down the polynomial interpolation function y(x) interpolating the points (0,4), (3,3) and (6,-2) in terms...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write down the polynomial interpolation function y(x) interpolating the points (0,4), (3,3) and (6,-2) in terms of Lagrange polynomials. There is no need to simplify your expressions. Hence calculate an interpolated value of y(2). 2. The function f(z)= tanh(c) can be approximated by the Lagrange polynomials. (a) Consider a set of data points (x, f(x)) given by 11 values of x equally spaced in the interval [-5, 5]. Let p(x) be the Lagrange interpolation function based on this 11 points. By writing a computer program, calculate f(x) and p(x) for 100 values of x in the same interval. Hence plot both functions on the same graph. (b) Repeat the procedure by interpolating 21 equally spaced points in the same interval. Has the quality of the polynomial approximation been improved by interpolating more points on the function? Why? Submit the source code for part (a) and both graphs for parts (a) and (b). 3. Consider 5 data points, (x,y) = (0, 2), (1, 8), (1.5, 12), (2, 10) and (3, 20). Write a computer program which performs a least square fit of the data to a straight line. It should output the fitted parameters. Hence, write down the program output. Plot the data and the fitted line on the same graph. Ac Go Write down the polynomial interpolation function y(x) interpolating the points (0,4), (3,3) and (6,-2) in terms of Lagrange polynomials. There is no need to simplify your expressions. Hence calculate an interpolated value of y(2). 2. The function f(z)= tanh(c) can be approximated by the Lagrange polynomials. (a) Consider a set of data points (x, f(x)) given by 11 values of x equally spaced in the interval [-5, 5]. Let p(x) be the Lagrange interpolation function based on this 11 points. By writing a computer program, calculate f(x) and p(x) for 100 values of x in the same interval. Hence plot both functions on the same graph. (b) Repeat the procedure by interpolating 21 equally spaced points in the same interval. Has the quality of the polynomial approximation been improved by interpolating more points on the function? Why? Submit the source code for part (a) and both graphs for parts (a) and (b). 3. Consider 5 data points, (x,y) = (0, 2), (1, 8), (1.5, 12), (2, 10) and (3, 20). Write a computer program which performs a least square fit of the data to a straight line. It should output the fitted parameters. Hence, write down the program output. Plot the data and the fitted line on the same graph. Ac Go
Expert 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
-
Bill Mason is considering two job offers. Job 1 pays a salary of $ 3 8 , 4 0 0 with $ 4 , 9 7 0 of nontaxable employee benefits. Job 2 pays a salary of $ 3 5 , 2 0 0 and $ 6 , 8 2 5 of nontaxable...
-
A small consulting company wants to make the switch to QuickBooks Online. All of their expenses are paid at the time they are incurred, so there is no need to track bills in the system. There is only...
-
1) P brings a civil antitrust action against D Corp. After the second week of what is projected to be a seven-week trial, D Corp. files for bankruptcy. What is the effect of the automatic stay? Would...
-
1. Suppose a company produces a product that sells for $55, has a variable cost per unit of $35, and has fixed costs of $100,000. How many units must the company sell to earn a target profit of...
-
Upon consideration of the SiO2-Al2O3 phase diagram in Figure 12.25, for each pair of the following list of compositions, which would you judge to be the more desirable refractory? Justify your...
-
Corporate profitability declined by 20 percent from 2008 to 2009. What performance percentage would you use to trigger executive bonuses for that year? Why? What issues would arise with hiring and...
-
Fill in the Blanks. The finite difference approximations are based on ___________ series expansion.
-
You are the audit manager for Ken- Ron Enterprises. Your firm has been the entitys auditor for 15 years. Your firm normally uses a range of 3% to 5% of income before taxes to calculate overall...
-
For the following transactions complete the table provided for Wildcat Company. 1. Beavs purchases common stock of Wildcat. 2. Beavs borrows from Wildcat by signing a note. 3. Beavs performs services...
-
Kate Collins has opened Fontina and Stuff, a wholesale grocery and cheese company. The following transactions occurred in February: Required 1. Journalize the transactions. Beginning balances of...
-
At a particular restaurant, each onion ring has 40 calories and each chicken wing has 75 calories. A combination meal with onion rings and chicken wings has a total of 19 onion rings and chicken...
-
Which combination of depreciation methods and useful lives is most conservative in the year a depreciable asset is acquired? A. Straight-line depreciation with a short useful life. B. Declining...
-
A core objective of the International Organization of Securities Commissions is to: A. eliminate systematic risk. B. protect users of financial statements. C. ensure that markets are fair, efficient,...
-
Expenses on the income statement may be grouped by: A. nature, but not by function. B. function, but not by nature. C. either function or nature.
-
A financial analyst at BETTO, S.A. is analyzing the result of the sale of a vehicle for 85,000 Argentine pesos (ARP) on 31 December 2009. The analyst compiles the following information about the...
-
The collection of all business transactions sorted by account in an accounting system is referred to as: A. a trial balance. B. a general ledger. C. a general journal.
-
Consider a portfolio with 21% in shares of Pinkshoe Corp. and 79% in shares of No Balance Inc. Find the expected return of the portfolio if Pinkshoe's expected return is 22% and No Balance's expected...
-
Question 2 For an n x n matrix A = form) via (aij)
-
Find the eigenvalues of A9 for 18 42 7300 312 00 1000
-
Find all 3 3 diagonal matrices A that satisfy A2 - 3A - 4I = 0.
-
Find conditions that the b's must satisfy for the system to be consistent. x1 - 2x2 + 5x3 = b1 4x1 - 5x2 + 8x3 = b2 - 3x1 + 3x2 - 3x3 = b3
-
A closed vessel having a volume of \(2.84 \mathrm{~m}^{3}\) contains \(1.365 \mathrm{~kg}\) of mixture of water and steam at a pressure of 7 bar. Find how much heat must be added to the vessel to...
-
In steam tables, the entropy is shown as zero for (a) saturated vapour at atmospheric pressure (b) saturated liquid at atmospheric pressure (c) saturated vapour at \(0^{\circ} \mathrm{C}\) (d)...
-
Water equivalent of calorimeter is given by (a) \(\frac{m_{c a l} \times c_{p c}}{c_{p w}}\) (b) \(\frac{m_{c a l}}{c_{p w}}\) (c) \(\frac{m_{c a l}}{c_{p c}}\) (d) \(\frac{m_{c a l} \times c_{p...
Study smarter with the SolutionInn App