/* Copyright 1989, 1991, 1992 Digital Equipment Corporation All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software and any copies shall not be provided to any other person. No title to or ownership of the software is hereby transferred. The information in this software is subject to change without notice. DIGITAL assumes no responsibility for the use, functionality or reliability of its software on equipment which is not supplied by DIGITAL. math.h */ #ifndef __MATH_H #define __MATH_H /* Macro Defintions: */ #ifndef __DEFINED_HUGE_VAL #define __DEFINED_HUGE_VAL #define HUGE_VAL ((4294967296.0*4294967296.0*128.0)*(4294967296.0*16777216.0-1.0)) #endif #ifndef __STDC__ typedef struct CABS_T {double x, y;} cabs_t; #define acos C$ACOS #define asin C$ASIN #define atan C$ATAN #define atan2 C$ATN2 #define cos C$COS #define sin C$SIN #define tan C$TAN #define cosh C$COSH #define sinh C$SINH #define tanh C$TANH #define exp C$EXP #define frexp C$FRXP #define ldexp C$LDXP #define log C$LOG #define log10 C$LG10 #define modf C$MODF #define pow C$POW #define sqrt C$SQRT #define ceil C$CEIL #define fabs C$FABS #define floor C$FLOR #define fmod C$FMOD #define hypot C$HYPT #define cabs C$CABS #pragma linkage c hypot, cabs double hypot (double x, double y); /* VAX C compatibility */ double cabs (cabs_t); /* VAX C compatibility */ #endif #pragma linkage c acos, asin, atan , atan2, cos, sin , tan , cosh, sinh #pragma linkage c tanh, exp , frexp, ldexp, log, log10, modf, pow , sqrt #pragma linkage c ceil, fabs, floor, fmod /* Trigonometric Functions: */ double acos (double __x); double asin (double __x); double atan (double __x); double atan2(double __y , double __x); double cos (double __x); double sin (double __x); double tan (double __x); /* Hyperbolic Functions: */ double cosh (double __x); double sinh (double __x); double tanh (double __x); double exp (double __x); double frexp (double __value, int * __exp); double ldexp (double __x , int __exp); double log (double __x); double log10 (double __x); double modf (double __value, double * __iptr); /* Power Functions: */ double pow (double __x , double __y); double sqrt (double __x); /* Nearest Integer, Absolute Value, and Remainder Functions: */ double ceil (double __x); double fabs (double __x); double floor (double __x); double fmod (double __x, double __y); #endif