Extended the correction function to use the full polynomial to calculate
yn.