Reference no: EM132078944
You need help representing the function given by the Matlab code above on the interval [0,2] by a polynomial P(x). The specific form of f(x) is not given but you know how to evaluate this function at any given point x (by calling the Matlab function). The function evaulation is costly, so you can compute the values only at 6 points xi in the interval [0,2].
(a) What is the best choice (i.e. minimizing the interpolation error) of points x1,x2,x3,x4,x5,x6? Give the formula for xi and using Matlab produce a table with numerical values of xi and corresponding values f(xi)
(b) Use the interpolation points xi and the values f(xi) to construct the interpolating polynomial P(x). What is the degree p of this polynomial? Express this polynomial in the form P(x)= ao + a1x + ... + apx^p (i.e. find the values of the coefficients).
(c) Use the constructed interpolation polynomial to approximate the integral of f(x) from [0,2]. (perform explicit calculations for integral(P(x)dx) from [0,2], substitute numerical values computed for ak and then evaluate the integral).
Math 353 d) Type the code below into a MATLAB file funf.m (both functions funf and law are entered in the single file funf.m exactly as typed below.
Make sure that everything is entered exactly as displayed below. function y fun f (x) [0 10] zo ode 45 (01aw, [0 x+0.1] ,z0) y Z (end, 1) end function dz law (t ,z) dz zeros (2,1) dz (1) z (2) dz (2) 9.8 z (1)-2*z (2) end.
Then evaluate the finite difference formulas derived above at 1 and h 10 2. Report the results and compare the accuracy of the derived formulas.
Prepare a journal entry to correct the errors
: The December 31, 2016, inventory of Tog Company, based on a physical count, was determined to be $450,000. Prepare a journal entry to correct the errors
|
Calculate the overall speedup of a system
: Calculate the overall speedup of a system that spends 40% of its time in calc with a processor upgrade that provides for 100% greater throughput.
|
Modify the outcome of an enzymatic reaction
: How an acidic fluid will modify the outcome of an enzymatic reaction using these materials pH paper,hydrogen peroxide solution, plastic
|
Prepare the journal entry on july for ellsbury
: Kickapoo pays Ellsbury on July 15, 2014, and Ellsbury delivers the machine on July 31, 2014. Prepare the journal entry on July 1, 2014, for Ellsbury
|
What is the degree p of this polynomial
: What is the best choice (i.e. minimizing the interpolation error) of points x1,x2,x3,x4,x5,x6? Give the formula for xi and using Matlab produce a table.
|
Study gene expression in cancerous versus noncancerous
: What are two methods you could use to study gene expression in cancerous versus noncancerous cells.
|
What is the unknown molar concentration of the ion
: Fit the raw data and determine the best equation to linearize the data .What is the unknown molar concentration of the ion .
|
How is mitotic metaphase similar to metaphase
: How is mitotic metaphase similar to metaphase I of meiosis I and how are they different from each other?
|
What is the combined number of units of the two products
: The company's total fixed costs are expected to be $280,000. Based on this information, what is the combined number of units of the two products
|