|
Message
From: Guy Hutchison<ghutchis@g...>
Date: Tue Sep 21 01:28:26 CEST 2004
Subject: [oc] Logs in hardware?
Hi Mike, I found the following algorithm: ln(x) ~ 6*(x-1)/ ( x + 1 + 4*(x^0.5))
on this page which discusses logarithms. There's a reference in there to one of the Knuth books, but I don't have that here to refer to. http://www.dattalo.com/technical/theory/logs.html
I think that algorithm may be sensitive to number of digits, since on my machine it gave results that corresponded with the results of the built-in log function, but were not the same (first 2-3 digits the same).
YMMV.
- Guy
|
 |