5. Linear Least Squares
A better approximation may be obtained by choosingc0
,
c1
, and c2
to minimize the mean square error between sqrt(f)
and
g = c0 + f*(c1 + f*c2)at a set of points. Using the points
f = 0.5, 0.6, 0.7, ..., 2.0
yields:
g = 0.38190217717175667 + f*(0.71612039556246465 - f*0.10126647163745968)
![](LLSQ.gif)