Corrected a bug with the conversion of coefficients values and with the exponent usage in the calculation