polynomials n > 2 working and fit sloppily

may need to use a different method to fit the curve within the
boundaries