Annotation of prex-old/usr/include/math.h, Revision 1.1
1.1 ! nbrk 1: /*-
! 2: * Copyright (c) 1985, 1990, 1993
! 3: * The Regents of the University of California. All rights reserved.
! 4: *
! 5: * Redistribution and use in source and binary forms, with or without
! 6: * modification, are permitted provided that the following conditions
! 7: * are met:
! 8: * 1. Redistributions of source code must retain the above copyright
! 9: * notice, this list of conditions and the following disclaimer.
! 10: * 2. Redistributions in binary form must reproduce the above copyright
! 11: * notice, this list of conditions and the following disclaimer in the
! 12: * documentation and/or other materials provided with the distribution.
! 13: * 3. Neither the name of the University nor the names of its contributors
! 14: * may be used to endorse or promote products derived from this software
! 15: * without specific prior written permission.
! 16: *
! 17: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
! 18: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 19: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 20: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
! 21: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 22: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 23: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 24: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 25: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 26: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 27: * SUCH DAMAGE.
! 28: *
! 29: * @(#)math.h 8.1 (Berkeley) 6/2/93
! 30: */
! 31:
! 32: #ifndef _MATH_H_
! 33: #define _MATH_H_
! 34:
! 35: #if defined(vax) || defined(tahoe) /* DBL_MAX from float.h */
! 36: #define HUGE_VAL 1.701411834604692294E+38
! 37: #else
! 38: #define HUGE_VAL 1e500 /* IEEE: positive infinity */
! 39: #endif
! 40:
! 41: #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
! 42: #if defined(vax) || defined(tahoe)
! 43: /*
! 44: * HUGE for the VAX and Tahoe converts to the largest possible F-float value.
! 45: * This implies an understanding of the conversion behavior of atof(3). It
! 46: * was defined to be the largest float so that overflow didn't occur when it
! 47: * was assigned to a single precision number. HUGE_VAL is strongly preferred.
! 48: */
! 49: #define HUGE 1.701411733192644270E+38
! 50: #else
! 51: #define HUGE HUGE_VAL
! 52: #endif
! 53:
! 54: #define M_E 2.7182818284590452354 /* e */
! 55: #define M_LOG2E 1.4426950408889634074 /* log 2e */
! 56: #define M_LOG10E 0.43429448190325182765 /* log 10e */
! 57: #define M_LN2 0.69314718055994530942 /* log e2 */
! 58: #define M_LN10 2.30258509299404568402 /* log e10 */
! 59: #define M_PI 3.14159265358979323846 /* pi */
! 60: #define M_PI_2 1.57079632679489661923 /* pi/2 */
! 61: #define M_PI_4 0.78539816339744830962 /* pi/4 */
! 62: #define M_1_PI 0.31830988618379067154 /* 1/pi */
! 63: #define M_2_PI 0.63661977236758134308 /* 2/pi */
! 64: #define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */
! 65: #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */
! 66: #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
! 67: #endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
! 68:
! 69: #include <sys/cdefs.h>
! 70:
! 71: __BEGIN_DECLS
! 72: double acos(double);
! 73: double asin(double);
! 74: double atan(double);
! 75: double atan2(double, double);
! 76: double ceil(double);
! 77: double cos(double);
! 78: double cosh(double);
! 79: double exp(double);
! 80: double fabs(double);
! 81: double floor(double);
! 82: double fmod(double, double);
! 83: double frexp(double, int *);
! 84: double ldexp(double, int);
! 85: double log(double);
! 86: double log10(double);
! 87: double modf(double, double *);
! 88: double pow(double, double);
! 89: double sin(double);
! 90: double sinh(double);
! 91: double sqrt(double);
! 92: double tan(double);
! 93: double tanh(double);
! 94:
! 95: #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
! 96: double acosh(double);
! 97: double asinh(double);
! 98: double atanh(double);
! 99: double cabs(); /* we can't describe cabs()'s argument properly */
! 100: double cbrt(double);
! 101: double copysign(double, double);
! 102: double drem(double, double);
! 103: double erf(double);
! 104: double erfc(double);
! 105: double expm1(double);
! 106: int finite(double);
! 107: double hypot(double, double);
! 108: #if defined(vax) || defined(tahoe)
! 109: double infnan(int);
! 110: #endif
! 111: int isinf(double);
! 112: int isnan(double);
! 113: double j0(double);
! 114: double j1(double);
! 115: double jn(int, double);
! 116: double lgamma(double);
! 117: double log1p(double);
! 118: double logb(double);
! 119: double rint(double);
! 120: double scalb(double, int);
! 121: double y0(double);
! 122: double y1(double);
! 123: double yn(int, double);
! 124: #endif
! 125:
! 126: __END_DECLS
! 127:
! 128: #endif /* _MATH_H_ */
CVSweb