home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / sci / math / numanal / 3549 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.9 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!usc!news.service.uci.edu!pollux.acs.uci.edu!frederik
  2. From: frederik@pollux.acs.uci.edu (M. Donald Frederick)
  3. Subject: Re: Request - Fast Exp/Log C routines
  4. Nntp-Posting-Host: pollux.acs.uci.edu
  5. Message-ID: <2B291AF2.625@news.service.uci.edu>
  6. Newsgroups: sci.math.num-analysis
  7. Reply-To: frederik@pollux.acs.uci.edu (M. Donald Frederick)
  8. Organization: University of California, Irvine
  9. Keywords: exp, log, fast, C
  10. Lines: 28
  11. References: <1992Dec7.034240.27779@trl.oz.au>
  12. Date: 11 Dec 92 22:49:22 GMT
  13.  
  14. In article <1992Dec7.034240.27779@trl.oz.au>, peter@gort.trl.OZ.AU (Peter K. Campbell) writes:
  15. |> Hello out there.  We have a C program here which the profiler tells us
  16. |> is making extensive use of exp & log functions.  Seeing as it takes
  17. |> several days to run on a Sun Sparcstation & several hours on a Cray
  18. |> Y-MP, we are looking for a quicker implementation of the general
  19. |> exp/log algorithm than cc or gcc provides.
  20. |> 
  21. |> So, would anyone out there know of any C implementation of a fast,
  22. |> general purpose exp/log (e.g. table lookup with a few iterations for
  23. |> fine tuning), available publicly or in a book?  Or perhaps a
  24. |> description of a general algorithm that I can implement in C without
  25. |> too many problems?
  26. |> 
  27. |> Thanks in advance.
  28. |> 
  29. |> Peter K. Campbell
  30. |> p.campbell@trl.oz.au
  31.  
  32. Take a look at "Table-Driven implementation of the exponential function for
  33. IEEE floating-point arithmetic", Ping Tak Peter Tang, ACM Trans. Math. Softw.,
  34. Vol. 15, No. 2 ( June 1989) pp144-157.
  35.  
  36. ------------------------------------------------------------------------
  37.         Donald Frederick       |      Office of Academic Computing
  38.         frederik@uci.edu       |      University of California, Irvine
  39.         frederik@UCI.BITNET    |      Irvine, CA  92717
  40.         (714) 725-3200         |      FAX (714) 725-2069
  41. -----------------------------------------------------------------------
  42.