Corrected polyval function for PSHC.