Least squares approximation of a function

From MaRDI portal





The approximation of a function \(f\) by the tangent line through a point \((c,f(c))\) is compared to the best linear least squares approximation of \(f\) over an interval which contains the point \(c\). For \(f(x)= \sin x\), \(c=0\) and \(c={\pi\over 6}\) and for \(f(x)= x^{1/3}\), \(c=64\) and \(c=125\) it is shown numerically that the approximation of \(f\) by the best linear function in the sense of least squares is better than by the tangent line, in points \(x\) that are relatively far away from \(c\).











This page was built for publication: Least squares approximation of a function

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4359662)