Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!dslg0849 From: dslg0849@uxa.cso.uiuc.edu (Daniel S. Lewart) Newsgroups: comp.lang.pascal Subject: Re: how can I get a log of a number? Message-ID: <1990Dec16.095635.15053@ux1.cso.uiuc.edu> Date: 16 Dec 90 09:56:35 GMT References: <10684@uhccux.uhcc.Hawaii.Edu> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 15 webb@uhccux.uhcc.Hawaii.Edu (Thomas Webb) writes: > I know that this must be a simple thing to do, but I can't think of a > decent way to get a log base 10 of a number. Since a log function > isn't included in Pascal (even turbo) I assume it is a simple matter > to derive one for the mathmatically inclined; not so for me. Any > help will be much appreciated. function Log(x: Real): Real; begin Log := Ln(x)/Ln(10); end; Daniel Lewart d-lewart@uiuc.edu