1 /* 2 * Copyright (c) 1985 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * All recipients should regard themselves as participants in an ongoing 8 * research project and hence should feel obligated to report their 9 * experiences (good or bad) with these elementary function codes, using 10 * the sendbug(8) program, to the authors. 11 * 12 * @(#)math.h 5.4 (Berkeley) 03/18/91 13 */ 14 15 #ifndef _MATH_H_ 16 #define _MATH_H_ 17 18 #if defined(vax) || defined(tahoe) 19 #define HUGE_VAL 1.701411733192644270e38 20 #else 21 #define HUGE_VAL 1e500 /* positive infinity */ 22 #endif 23 24 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 25 #define HUGE HUGE_VAL 26 #endif 27 28 #include <sys/cdefs.h> 29 30 __BEGIN_DECLS 31 double acos __P((double)); 32 double asin __P((double)); 33 double atan __P((double)); 34 double atan2 __P((double, double)); 35 double ceil __P((double)); 36 double cos __P((double)); 37 double cosh __P((double)); 38 double exp __P((double)); 39 double fabs __P((double)); 40 double floor __P((double)); 41 double fmod __P((double, double)); 42 double frexp __P((double, int *)); 43 double ldexp __P((double, int)); 44 double log __P((double)); 45 double log10 __P((double)); 46 double modf __P((double, double *)); 47 double pow __P((double, double)); 48 double sin __P((double)); 49 double sinh __P((double)); 50 double sqrt __P((double)); 51 double tan __P((double)); 52 double tanh __P((double)); 53 54 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 55 double acosh __P((double)); 56 double asinh __P((double)); 57 double atanh __P((double)); 58 double cabs(); /* we can't describe cabs()'s argument properly */ 59 double cbrt __P((double)); 60 double copysign __P((double, double)); 61 double drem __P((double, double)); 62 double erf __P((double)); 63 double erfc __P((double)); 64 double expm1 __P((double)); 65 int finite __P((double)); 66 double hypot __P((double, double)); 67 #if defined(vax) || defined(tahoe) 68 double infnan __P((int)); 69 #else 70 int isnan __P((double)); 71 #endif 72 double j0 __P((double)); 73 double j1 __P((double)); 74 double jn __P((int, double)); 75 double lgamma __P((double)); 76 double log1p __P((double)); 77 double logb __P((double)); 78 double rint __P((double)); 79 double scalb __P((double, int)); 80 double y0 __P((double)); 81 double y1 __P((double)); 82 double yn __P((int, double)); 83 #endif 84 85 __END_DECLS 86 87 #endif /* _MATH_H_ */ 88