You may be able to replace the exp function with an approximation, exp(x) = ( ( ( (x/5+1) * x/4 + 1 ) * x/3 + 1 ) * x/2 + 1 ) * x + 1 but this depends on the accuracy you require and the range of values of x.