|
Posted: 10/25/23
Due: 11/08/23, 11:59PM
Time constraints and clasas cancellation at time of H01 did not allow a computational assignment on least squares and minimax approximation. These are important topics to explore numerically so this assignment is offered as extra credit, with 4 course points for the first three questions. These correspond to a normal homework assignment effort. An additional 3 course points are awarded to correct solution of the fourth question on the Remez algorithm. For Track 1 a solution is to be sought by computer-aided calculation, and for Track 2 a general implementation is required. The effort requried for this single question is comparable to a full homework assignment.
Apply the Gram-Schmidt process to to obtain the first three Legendre polynomials , orthonormal with respect to the scalar product
Show intermediate steps. Check hand calculations with symbolic integration packages.
Find the best approximant of in the Hilbert space with scalar product and norm
Find the best inf-norm approximant by of , .
By the equioscillation theorem, the solution is a line that intersects the graph of twice such that the error has three extrema of equal absolute value at , with stationary at . Write the four equations that arise
Solve the above problem, and plot .
Extra credit (3 points). Apply the Remez algorithm to Q3
Find and plot the first six members of the orthonormal basis obtained from applying the Gram-Schmidt algorithm to with the scalar product
Find and plot the best approximants of
in span for and scalar product from problem 1, for .
First, carry out analytical computations. Symbolic computation software (Maple, Mathematica, Maxima) is allowed. Maxima is available in the SciComp@UNC virtual machine.
For each , form the matrix at sample points within [0,1] and . Solve the least squares problem
in the Euclidean two-norm. Plot the numerically determined approximants
together with the analytically determined approximants, and compare.
Apply the Remez algorithm to find the best inf-norm approximant by a quadratic of , . Establish your own convergence criteria.
Extra credit (3points). Implement the Remez algorithm. Use whatever root-finding routine is available within the programming environment (e.g., Roots for Julia) to solve the extrema conditions needed in the Remez algorithm.