This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: log(x) how?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]