Program works, e^x is not correct mathmaticly