Function Sketching and Polynomial Fitting

Just sketch an arbitrary function, from left to right.

You will see the regression polynomial up to fifth degree. Adjust the degree between zero and five.