Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!mejac!orchard.la.locus.com!fafnir.la.locus.com!fafnir.la.locus.com!cjkuo From: cjkuo@locus.com (Chengi Jimmy Kuo) Newsgroups: comp.lang.c Subject: Re: Execution time bottleneck: How to speed up execution? Message-ID: Date: 17 Feb 91 08:32:37 GMT References: <24587:Feb1411:32:5391@kramden.acf.nyu.edu> <2940@charon.cwi.nl> <26862:Feb1416:46:4391@kramden.acf.nyu.edu> <2942@charon.cwi.nl> Organization: Locus Computing Corporation, Los Angeles, California Lines: 10 "Use a faster exp()" is the correct answer. Only you the programmer know about such things as digits of accuracy, whether you can work in ints or fixed decimals, other things that could be designed into your private exp(). Also in your exp(), you can handle the concept that e**(kx) => (e**k)**x as well as reducing your expression. Jimmy Kuo -- cjkuo@locus.com "The correct answer to an either/or question is both!"