[Solved] Numerical Analysis Homework #8

$25

File Name: Numerical_Analysis_Homework_#8.zip
File Size: 282.6 KB

SKU: [Solved] Numerical Analysis Homework #8 Category: Tag:
5/5 - (1 vote)
  • To get full credit, you must write down sufficient intermediate steps, only giving the final answer earns you no credit!
  • Please make sure that your handwriting is recognizable, otherwise you only get partial credit for the recognizable part.
  1. Prove Theorem 6.3 by assuming that x (a,b) the weight function (x) >
  2. Consider the Chebyshev polynomials of the firstkind.
    • Show that they are orthogonal on [1,1] with respect to the inner product in Theorem 6.3 with the weight function.
    • Normalize the first three Chebyshev polynomialsto arrive at an orthonormal system.
  • Least-square approximation of a continuous function.Approximate the circular arc given by the equation

y(x) = 1 x2 for x [1,1] by a quadratic polynomial with respect to the inner product in Theorem

6.3.

with Fourier expansion,

with normal equations,

  1. Discrete least square via orthonormal polynomials.Consider the example on the table of sales record in the notes.
    • Starting from the independent list (1,x,x2), construct orthonormal polynomials by the GramSchmidt process using

N hu(t),v(t)i = X(ti)u(ti)v(ti) (1)

i=1 as the inner product with N = 12 and (x) = 1.

  • Find the best approximation =such that for all bi R.

Verify that is the same as that of the example on the table of sales record in the notes.

x 0.0 0.5 1.0 1.5 2.0 2.5 3.0
y 2.9 2.7 4.8 5.3 7.1 7.6 7.7
x 3.5 4.0 4.5 5.0 5.5 6.0 6.5
y 7.6 9.4 9.0 9.6 10.0 10.2 9.7
x 7.0 7.5 8.0 8.5 9.0 9.5 10.0
y 8.3 8.4 9.0 8.3 6.6 6.7 4.1
  • Suppose there are other tables of sales record inthe same format as that in the example . Values of N and xis are the same, but the values of yis are different. Which of the above calculations can be reused? Which cannot be reused? What advantage of orthonormal polynomials over normal equations does this reuse imply?

The first three problems weigh 6 points each while the last problem weighs 12 points.

2 C++ programming

Write a C++ function to perform discrete least square via normal equations. Your subroutine should take two arrays x and y as the input and output three coefficients a0,a1,a2 that determines a quadratic polynomial as the best fitting polynomial in the sense of least squares with the weight function = 1.

Run your subroutine on the following data.

This programming assignment weighs 10 points. Thus the total point of this homework is thus 40.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Numerical Analysis Homework #8
$25