r_lg10.c 279 B

123456789101112131415161718192021
  1. #include "f2c.h"
  2. #define log10e 0.43429448190325182765
  3. #ifdef KR_headers
  4. double log();
  5. double r_lg10(x) real *x;
  6. #else
  7. #undef abs
  8. #include "math.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. double r_lg10(real *x)
  13. #endif
  14. {
  15. return( log10e * log(*x) );
  16. }
  17. #ifdef __cplusplus
  18. }
  19. #endif