Execution time bottleneck: How

ADARTNEL at ESOC.BITNET ADARTNEL at ESOC.BITNET
Sun Feb 24 21:11:17 AEST 1991


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.



More information about the Comp.lang.c mailing list