gcc and math.h

Mike Klinke lsomike at futzin.com
Mon Mar 22 01:18:56 UTC 2004


On Sunday 21 March 2004 18:36, 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

Haven't tried to used them but the documentation says they're there 
(man log2, log10)

Regards,  Mike Klinke



EXP(3)                     Linux Programmer's Manual                     

NAME
       log10 -  base-10 logarithmic function

SYNOPSIS
       #include <math.h>

       double log10(double x);

       float log10f(float x);

       long double log10l(long double x);

-----

NAME
       log2 - base-2 logarithmic function

SYNOPSIS
       #include <math.h>

       double log2(double x);

       float log2f(float x);

       long double log2l(long double x);





More information about the fedora-list mailing list