Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Log Library - How is it done in the library code? Keywords: log, library, series expansion Message-ID: <15438@smoke.brl.mil> Date: 11 Mar 91 18:16:16 GMT References: <1991Mar11.022141.12068@m.cs.uiuc.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 9 In article <1991Mar11.022141.12068@m.cs.uiuc.edu> joshi@m.cs.uiuc.edu (Anil Joshi) writes: >I need to compute natural log for some numbers. I could use the c math.h library >routine but I do not want the accuracy of the library routine. A crude >approximation would suffice. Does anyone know how this is done in the c library >routine? Is it possible to get the source code? I don't understand why you don't simply use the C library log() function. It should be reliable and efficient, so what would you gain by trying to roll your own cruder version?