least-squares function approximation

least-squares function approximation