Re: what's the reasonale of loghelper() in mathmodule.c

2008-04-10 Thread rockins
On Apr 9, 9:11 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > On Apr 9, 4:38 am,rockins<[EMAIL PROTECTED]> wrote: > > > I cannot understand it well, can anyone explain me why and how > > loghelper() can compute any base logarithm? Or could anyone give me > > some reference(such as, books or papers

Re: what's the reasonale of loghelper() in mathmodule.c

2008-04-09 Thread Mark Dickinson
On Apr 9, 4:38 am, rockins <[EMAIL PROTECTED]> wrote: > I cannot understand it well, can anyone explain me why and how > loghelper() can compute any base logarithm? Or could anyone give me > some reference(such as, books or papers)? loghelper is there so that log(n) can be computed for any positiv

what's the reasonale of loghelper() in mathmodule.c

2008-04-09 Thread rockins
Hi all, I downloaded Python-2.5.2.tar.bz2 and want to lean some math function implementation in it. I found that mathmodule.c implements 'math' module of python. In this file there's a function loghelper()(in Python-2.5.2/Modules/mathmodule.c), it seems with this function's help any base logarithm