Uses orthogonal projection to find optimal polynomial approximation for a given function.
Thanks for reading.