|
|
1.1 ! root 1: /* (-lgl ! 2: * COHERENT Version 4.1.0 ! 3: * Copyright (c) 1982, 1993 by Mark Williams Company. ! 4: * All rights reserved. May not be copied without permission. ! 5: -lgl) */ ! 6: /* ! 7: * /usr/include/math.h ! 8: * Definitions for math library. ! 9: * ANSI C Standard, section 4.5. ! 10: */ ! 11: ! 12: #ifndef __MATH_H__ ! 13: #define __MATH_H__ ! 14: ! 15: /* Manifest constants. */ ! 16: #if __DECVAX__ ! 17: #define HUGE_VAL 1e+37 /* Infinity */ ! 18: #define L2HUGE_VAL 127.0 /* log2(infinity) */ ! 19: #define L10P 17 /* log10(precision) */ ! 20: #define L2L2P 6 /* log2(log2(precision)) */ ! 21: #elif __IEEE__ ! 22: #define HUGE_VAL 1e+308 /* Infinity */ ! 23: #define L2HUGE_VAL 1023.0 /* log2(infinity) */ ! 24: #define L10P 16 /* log10(precision) */ ! 25: #define L2L2P 6 /* log2(log2(precision)) */ ! 26: #endif ! 27: ! 28: /* Error return values. */ ! 29: #define EDOM 33 /* Domain error */ ! 30: #define ERANGE 34 /* Result too large */ ! 31: ! 32: /* Constants. */ ! 33: #define PI 0.31415926535897932e+01 ! 34: #define SQRT2 0.14142135623730950e+01 ! 35: #define LOG2B10 0.30102999566398119e+00 ! 36: #define LOG10BE 0.23025850929940456e+01 ! 37: #define LOG10B2 0.33219280948873623e+01 ! 38: #define LOGEB2 0.14426950408889634e+01 ! 39: ! 40: /* Complex variables. */ ! 41: typedef struct cpx { ! 42: double z_r; ! 43: double z_i; ! 44: } CPX; ! 45: ! 46: /* Error return status from routines. */ ! 47: extern int errno; ! 48: ! 49: /* Internal functions. */ ! 50: extern double _pol(); ! 51: extern double _two(); ! 52: ! 53: /* Math library functions in /lib/libm.a. */ ! 54: extern double acos(); /* ANSI 4.5.2.1 */ ! 55: extern double asin(); /* ANSI 4.5.2.3 */ ! 56: extern double atan(); /* ANSI 4.5.2.3 */ ! 57: extern double atan2(); /* ANSI 4.5.2.4 */ ! 58: extern double cabs(); /* non-ANSI */ ! 59: extern double ceil(); /* ANSI 4.5.6.1 */ ! 60: extern double cos(); /* ANSI 4.5.2.5 */ ! 61: extern double cosh(); /* ANSI 4.5.3.1 */ ! 62: extern double exp(); /* ANSI 4.5.4.1 */ ! 63: extern double fabs(); /* ANSI 4.5.6.2 */ ! 64: extern double floor(); /* ANSI 4.5.6.3 */ ! 65: extern double fmod(); /* ANSI 4.5.6.4 */ ! 66: extern double hypot(); /* non-ANSI */ ! 67: extern double j0(); /* non-ANSI */ ! 68: extern double j1(); /* non-ANSI */ ! 69: extern double jn(); /* non-ANSI */ ! 70: extern double log(); /* ANSI 4.5.4.4 */ ! 71: extern double log10(); /* ANSI 4.5.4.5 */ ! 72: extern double pow(); /* ANSI 4.5.5.1 */ ! 73: extern double sin(); /* ANSI 4.5.2.6 */ ! 74: extern double sinh(); /* ANSI 4.5.3.2 */ ! 75: extern double sqrt(); /* ANSI 4.5.5.2 */ ! 76: extern double tan(); /* ANSI 4.5.2.7 */ ! 77: extern double tanh(); /* ANSI 4.5.3.3 */ ! 78: ! 79: /* C library floating point functions in /lib/libc.a. */ ! 80: extern double atof(); /* ANSI 4.10.1.1 */ ! 81: extern double frexp(); /* ANSI 4.5.4.2 */ ! 82: extern double ldexp(); /* ANSI 4.5.4.3 */ ! 83: extern double modf(); /* ANSI 4.5.4.6 */ ! 84: ! 85: #endif ! 86: ! 87: /* end of /usr/include/math.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.