Numerical analysis: least squares method
0
$begingroup$
Basically I came up with a function where I need to approximate it using the least squares method. I had no trouble computing the constants on MATLAB and got to the following plot: Now as you see the curves are approximately the same but not exactly. I'm looking for a rather sharp explanation to this? Is it because the function is very oscillatory? Is it because it constantly oscillates between negative and positive values? Can someone give me some insight about this? I really want to understand what I am obtaining. Thanks!
numerical-methods matlab least-squares
share | cite | improve this question
asked Dec 18 '18 at 1:30
...