The polynomial representation of the least squares approximation of f(x) up to degree n is:
f(x) ≈ a_0 + a_1 * x + ... + a_n * x^n
f(x) ≈ a_0 + a_1 * cos(x) + ... + a_n * cos(nx)
f(x) ≈ a_0 + a_1 * x + ... + a_n * sin(x)
f(x) ≈ a_0 + a_1 * x^2 + ... + a_n * x^(n+1)

Mathematics Exercises are loading ...