X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fmath.h;h=ee4dff7ef0fbe668c7023079e32a56a100b8e4c3;hb=70f1c6f7c9d515ef426da68973511f46de57005a;hp=c03037e8992c902138a44330fd521d112f1c711e;hpb=ac3f809c3c10347c110fac3db93af0954eda98bb;p=pdclib diff --git a/includes/math.h b/includes/math.h index c03037e..ee4dff7 100644 --- a/includes/math.h +++ b/includes/math.h @@ -10,38 +10,40 @@ #ifndef __MATH_H #define __MATH_H __MATH_H +// TODO: Documentation + // ---------------------------------------------------------------------------- // DEFINES -#define HUGE_VAL // TODO -#define HUGE_VALF // TODO -#define HUGE_VALL // TODO +#define HUGE_VAL // TODO - personality? +#define HUGE_VALF // TODO - personality? +#define HUGE_VALL // TODO - personality? -#define INFINITY // TODO -#define NAN // TODO +#define INFINITY // TODO - personality? +#define NAN // TODO - personality? -#define FP_FAST_FMA // TODO -#define FP_FAST_FMAF // TODO -#define FP_FAST_FMAL // TODO +#define FP_FAST_FMA // TODO - personality? +#define FP_FAST_FMAF // TODO - personality? +#define FP_FAST_FMAL // TODO - personality? -#define FP_INFINITE // TODO -#define FP_NAN // TODO -#define FP_NORMAL // TODO -#define FP_SUBNORMAL // TODO -#define FP_ZERO // TODO +#define FP_INFINITE // TODO - personality? +#define FP_NAN // TODO - personality? +#define FP_NORMAL // TODO - personality? +#define FP_SUBNORMAL // TODO - personality? +#define FP_ZERO // TODO - personality? -#define FP_ILOGB0 // TODO -#define FP_ILOGBNAN // TODO +#define FP_ILOGB0 // TODO - personality? +#define FP_ILOGBNAN // TODO - personality? -#define MATH_ERRNO 1 -#define MATH_ERREXCEPT 2 -#define math_errhandling // TODO +#define MATH_ERRNO 1 // personality? +#define MATH_ERREXCEPT 2 // personality? +#define math_errhandling // TODO - personality? // -------------------------------------------------------------------------- // TYPEDEFS -typedef double_t; // TODO -typedef float_t; // TODO +typedef double_t; // TODO - personality? +typedef float_t; // TODO - personality? // -------------------------------------------------------------------------- // MACROS @@ -129,7 +131,6 @@ float asin( float x ); long double asin( long double x ); // These functions compute the arc hyperbolic sine of x. -// @returns arsinh x. float asinh( float x ); long double asinh( long double x ); @@ -343,7 +344,6 @@ float fabsf( float x ); long double fabsl( long double x ); // These functions compute the sine of x (measured in radians). -// @returns sin x. double sin( double x ); float sinf( float x ); long double sinl( long double x ); @@ -364,7 +364,6 @@ float asinhf( float x ); long double asinhl( long double x ); // These functions compute the cosine of x (measured in radians). -// @returns cos x. double cos( double x ); float cosf( float x ); long double cosl( long double x ); @@ -384,8 +383,7 @@ double acosh( double x ); float acoshf( float x ); long double acoshl( long double x ); -// These functions return the tangent of x (measured in radians). -// @returns tan x. +// These functions return the tangent of x. double tan( double x ); float tanf( float x ); long double tanl( long double x ); @@ -395,8 +393,7 @@ double tanh( double x ); float tanhf( float x ); long double tanhl( long double x ); -// These functions compute the principal value of the arc tangent of x. -// @returns arctan x in the interval [-p/2, +p/2] radians. +// These functions compute the arctangent of x. double atan( double x ); float atanf( float x ); long double atanl( long double x );