X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/f0235774418b4eb44bdd73229998385bff40dd85..00744c12007e6b05d08130adebf9c391e216365b:/usr/src/include/math.h diff --git a/usr/src/include/math.h b/usr/src/include/math.h index 58937bfd00..0460ab3339 100644 --- a/usr/src/include/math.h +++ b/usr/src/include/math.h @@ -1,11 +1,82 @@ -/* math.h 4.2 84/03/08 */ +/* + * Copyright (c) 1985 The Regents of the University of California. + * All rights reserved. + * + * %sccs.include.redist.c% + * + * All recipients should regard themselves as participants in an ongoing + * research project and hence should feel obligated to report their + * experiences (good or bad) with these elementary function codes, using + * the sendbug(8) program, to the authors. + * + * @(#)math.h 5.3 (Berkeley) %G% + */ -extern double fabs(), floor(), ceil(), modf(), ldexp(), frexp(); -extern double sqrt(), hypot(), atof(); -extern double sin(), cos(), tan(), asin(), acos(), atan(), atan2(); -extern double exp(), log(), log10(), pow(); -extern double sinh(), cosh(), tanh(); -extern double gamma(); -extern double j0(), j1(), jn(), y0(), y1(), yn(); +#if defined(vax) || defined(tahoe) +#define HUGE_VAL 1.701411733192644270e38 +#else +#define HUGE_VAL 1e500 /* positive infinity */ +#endif -#define HUGE 1.701411733192644270e38 +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +#define HUGE HUGE_VAL +#endif + +#include + +__BEGIN_DECLS +double acos __P((double)); +double asin __P((double)); +double atan __P((double)); +double atan2 __P((double, double)); +double ceil __P((double)); +double cos __P((double)); +double cosh __P((double)); +double exp __P((double)); +double fabs __P((double)); +double floor __P((double)); +double fmod __P((double, double)); +double frexp __P((double, int *)); +double ldexp __P((double, int)); +double log __P((double)); +double log10 __P((double)); +double modf __P((double, double *)); +double pow __P((double, double)); +double sin __P((double)); +double sinh __P((double)); +double sqrt __P((double)); +double tan __P((double)); +double tanh __P((double)); + +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +double acosh __P((double)); +double asinh __P((double)); +double atanh __P((double)); +double cabs(); /* we can't describe cabs()'s argument properly */ +double cbrt __P((double)); +double copysign __P((double, double)); +double drem __P((double, double)); +double erf __P((double)); +double erfc __P((double)); +double expm1 __P((double)); +int finite __P((double)); +double hypot __P((double, double)); +#if defined(vax) || defined(tahoe) +double infnan __P((int)); +#else +int isnan __P((double)); +#endif +double j0 __P((double)); +double j1 __P((double)); +double jn __P((int, double)); +double lgamma __P((double)); +double log1p __P((double)); +double logb __P((double)); +double rint __P((double)); +double scalb __P((double, int)); +double y0 __P((double)); +double y1 __P((double)); +double yn __P((int, double)); +#endif + +__END_DECLS