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.3 (Berkeley) 02/24/91 13 */ 14 15 #if defined(vax) || defined(tahoe) 16 #define HUGE_VAL 1.701411733192644270e38 17 #else 18 #define HUGE_VAL 1e500 /* positive infinity */ 19 #endif 20 21 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 22 #define HUGE HUGE_VAL 23 #endif 24 25 #include <sys/cdefs.h> 26 27 __BEGIN_DECLS 28 double acos __P((double)); 29 double asin __P((double)); 30 double atan __P((double)); 31 double atan2 __P((double, double)); 32 double ceil __P((double)); 33 double cos __P((double)); 34 double cosh __P((double)); 35 double exp __P((double)); 36 double fabs __P((double)); 37 double floor __P((double)); 38 double fmod __P((double, double)); 39 double frexp __P((double, int *)); 40 double ldexp __P((double, int)); 41 double log __P((double)); 42 double log10 __P((double)); 43 double modf __P((double, double *)); 44 double pow __P((double, double)); 45 double sin __P((double)); 46 double sinh __P((double)); 47 double sqrt __P((double)); 48 double tan __P((double)); 49 double tanh __P((double)); 50 51 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 52 double acosh __P((double)); 53 double asinh __P((double)); 54 double atanh __P((double)); 55 double cabs(); /* we can't describe cabs()'s argument properly */ 56 double cbrt __P((double)); 57 double copysign __P((double, double)); 58 double drem __P((double, double)); 59 double erf __P((double)); 60 double erfc __P((double)); 61 double expm1 __P((double)); 62 int finite __P((double)); 63 double hypot __P((double, double)); 64 #if defined(vax) || defined(tahoe) 65 double infnan __P((int)); 66 #else 67 int isnan __P((double)); 68 #endif 69 double j0 __P((double)); 70 double j1 __P((double)); 71 double jn __P((int, double)); 72 double lgamma __P((double)); 73 double log1p __P((double)); 74 double logb __P((double)); 75 double rint __P((double)); 76 double scalb __P((double, int)); 77 double y0 __P((double)); 78 double y1 __P((double)); 79 double yn __P((int, double)); 80 #endif 81 82 __END_DECLS 83