log(x) how?

Ian Lance Taylor ian@wasabisystems.com
Wed Jan 7 15:39:00 GMT 2004


Douglas Macdonald <mm2ps@yahoo.co.uk> writes:

> Can anyone tell me how log(x) is calculated, what
> computational metod it uses?
> 
> And, where can I find the math.c source code, so that 
> I can investigate it myself?

The log() function does not come from gcc (except that gcc will
simplify a few cases).  It comes from your math library, -lm.  That is
where you have to look.  Since you didn't say what system you are
running on, we can't give you any suggestions as to where to find the
source.

Ian



More information about the Gcc-help mailing list