poly fitting the exponential data and verifying correctness