1. Using the MATLAB instruction cond, find the condition numbers of Hilbert matrices for n = 4,5,...,12. Plot these condition numbers as a function of n using semilogy. What are your observations?
2. Construct the second degree polynomial q2(t) that approximates g(t) = sin(πt) on the interval [0,1] by minimizing
![811_2295d3df-23de-4227-b70c-0e76cfce29bf.png](https://secure.tutorsglobe.com/CMSImages/811_2295d3df-23de-4227-b70c-0e76cfce29bf.png)