need param.h for mbuf.h now
[unix-history] / usr / src / include / math.h
index 9b3dda3..60b6d37 100644 (file)
@@ -1,16 +1,44 @@
-/*     math.h  4.3     %G%     */
+/*
+ * Copyright (c) 1985 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * 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      4.7 (Berkeley) %G%
+ */
 
 extern double asinh(), acosh(), atanh();
 extern double erf(), erfc();
 
 extern double asinh(), acosh(), atanh();
 extern double erf(), erfc();
-extern double E(), L(), exp(), log(), log10(), pow();
-extern double fabs(), floor(), ceil();
-extern double gamma();
+extern double exp(), expm1(), log(), log10(), log1p(), pow();
+extern double fabs(), floor(), ceil(), rint();
+extern double lgamma();
 extern double hypot(), cabs();
 extern double copysign(), drem(), logb(), scalb();
 extern double hypot(), cabs();
 extern double copysign(), drem(), logb(), scalb();
+
+#if defined(vax) || defined(tahoe)
+extern double infnan();
+#endif
+
+extern int finite();
 extern double j0(), j1(), jn(), y0(), y1(), yn();
 extern double sin(), cos(), tan(), asin(), acos(), atan(), atan2();
 extern double sinh(), cosh(), tanh();
 extern double cbrt(), sqrt();
 extern double modf(), ldexp(), frexp(), atof();
 
 extern double j0(), j1(), jn(), y0(), y1(), yn();
 extern double sin(), cos(), tan(), asin(), acos(), atan(), atan2();
 extern double sinh(), cosh(), tanh();
 extern double cbrt(), sqrt();
 extern double modf(), ldexp(), frexp(), atof();
 
-#define HUGE   1.701411733192644270e38
+#define        HUGE    1.701411733192644270e38