Re: gcc and math.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ln function is done by "log" in gcc and is supported by math.h.
The log10 function is done by "log10" in gcc and is supported by math.h.
There is a constant M_LOG2E in math.h which is log2 of e.
To get log2 of x, this is the same as M_LOG2E*log(x).

stucklenp wrote:

Kind persons:

I routinely program using C and compile with gcc.  My problem is that I need
some math log functions--ln, log10, and log2--and these functions are not
included in math.h from what I can determine.  Can anyone suggest how I can
get these functions?

I have tried notes to the glibc groups and not received any replies.

Thanks.

Paul








[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux