home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / gnu / f2c-1993.04.28-src.lha / f2c-1993.04.28 / libF77 / d_lg10.c < prev    next >
C/C++ Source or Header  |  1993-04-28  |  224b  |  16 lines

  1. #include "f2c.h"
  2.  
  3. #define log10e 0.43429448190325182765
  4.  
  5. #ifdef KR_headers
  6. double log();
  7. double d_lg10(x) doublereal *x;
  8. #else
  9. #undef abs
  10. #include "math.h"
  11. double d_lg10(doublereal *x)
  12. #endif
  13. {
  14. return( log10e * log(*x) );
  15. }
  16.