HPUX 9.03 math.h bug?

HPUX 9.03 math.h bug?

Post by Michael P Urb » Sun, 27 Feb 1994 09:44:19



Is the declaration of logb in /usr/include/math.h as an int a known
bug, or an obscure feature?  It does not match the manual page, and
more importantly, produces incorrect results.

#include <stdio.h>
#include <math.h>
main() {
        double f=9.3;
        double a;

        a = (double)logb(f);
        printf("logb(%f)=%f\n",f,a);
        exit(0);

Quote:}

logb(9.300000)=1074266112.000000

Replacing the #include <math.h>  with   double logb   produces
correct results.

        Mike Urban


 
 
 

1. HPUX 9.03 (and 9.01) ANSI C Compiler BUG?

The following code fragment works fine with "cc -Aa -c file.c" ...

        int function( int ) ;

        int function( parameter )
        int parameter;
        { ; }

The following, however, does not ...

        int function( char ) ;

        int function( parameter )
        char parameter;
        { ; }

It gives the error message ...
"line 3: error 1711: Inconsistent parameter list declaration for function"

Am I doing something stupid?  or is this a bug

Regards


         (phone(UK): 051-974-3690)

Kenneth Chan
Department Of Computer Science
University Of Liverpool
PO Box 147
Liverpool
L69 3BX
UK

2. Caps.XL of U.K Netherlands

3. Math Bug on HPUX 10.20?

4. comp.dsp FAQ [1 of 4]

5. purported bug in HP-UX 9.03 libc standard I/O functions, ftell() w/ fflush()

6. Calling MICROSOFT...

7. Termios bug in HP-UX 9.03

8. Trouble w/Arcserve 4.02!!

9. HP-UX 9.03 Installation Bugs

10. Bug in C math library?

11. Help on a 9000/300 and hpux 9.03

12. HPUX 9.03: Problems with nslookup

13. hpux 9.03 -> 10.xx