Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93066418

Have any Question?


Related Questions in Computer Engineering

Show how an avl tree can have a deepest leaf at depth 4 and

Show how an AVL tree can have a deepest leaf at depth 4 and another leaf at depth 2, and still be balanced. Show the same thing for a Red/Black tree. If there were an AVL tree and Red/Black tree with deepest leaves at de ...

You are evaluating two different silicon wafer milling

You are evaluating two different silicon wafer milling machines. The Techron I costs $255,000, has a three-year life, and has pretax operating costs of $68,000 per year. The Techron II costs $445,000, has a five-year lif ...

Question 500-700 wordsoperations management involves

Question: 500-700 words Operations management involves various activities, such as process design, selection, management of information technology, work systems, planning and development, and quality assurance (Slack, Ch ...

Discuss why a financial services organization would benefit

Discuss why a financial services organization would benefit from using one framework over another (COSO, COBIT,) -- choose a framework or frameworks that in your opinion would be most ideally suited for such an organizat ...

Question suppose two matlab functions find-nonzero and

Question : Suppose, two Matlab functions find-nonzero and row-echelon are available to use. The first function takes a vector as input and returns the location of the first nonzero entry of the input vector. The second f ...

Why is a mixture of ethanol and water needed to perform a

Why is a mixture of ethanol and water needed to perform a reaction between oil and NaOH? This question is from a soap lab where we made soap from oils.

Question suppose a task consists of 40 cpu access 20 memory

Question : Suppose a task consists of 40% CPU access, 20% memory access and 40% disk access. A CPU with 8 cores provides an effective speedup of only 4 over a singlecore CPU. What is system speed up (as defined by Amdahl ...

Program in cit is often times advantageous to be able to

*Program in C* It is often times advantageous to be able to transfer data between two arrays. Need a help with program (transfer.c) that add a range (by start index and end index) of numbers from array #1 to array #2 at ...

As noted in chapter 14 of aampa distribution of income

As noted in Chapter 14 of A&A, distribution of income among various population groups followed roughly the same patterns in the USA, Sweden, and the former Soviet Union, despite the very different forms of economic organ ...

Not many applications use this type of direct connection ex

Not many applications use this type of direct connection (ex: ftp, ssh, tenet, smtp, httpd, pop) anymore unless it is within the corporate firewall. Why do you think this is? Pick 1 or 2 as example.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As