Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 2 - The PowerPC Numerics C Implementation
Chapter 10 - Transcendental Functions


Transcendental Functions Summary

This section summarizes the transcendental functions declared in the MathLib header file fp.h and the constants and data types that they use.

C Summary

Constants

extern const double_t pi;

Data Types

typedef short relop;
enum 
{
   GREATERTHAN = ((relop) (0)),
   LESSTHAN,
   EQUALTO,
   UNORDERED
};

Transcendental Functions

Comparison Functions

double_t fdim(double_t x, double_t y);
double_t fmax (double_t x, double_t y);
double_t fmin (double_t x, double_t y);
relop relation (double_t x, double_t y);

Sign Manipulation Functions

double_t copysign (double_t x, double_t y);
double_t fabs (double_t x);
long double copysignl (long double x, long double y);
long double fabsl (long double x);

Exponential Functions

double_t exp (double_t x);
double_t exp2  (double_t x);
double_t expm1  (double_t x);
double_t ldexp (double_t x, int n);
double_t pow   (double_t x, double_t y);
double_t scalb (double_t x, long int n); 

Logarithmic Functions

double_t frexp (double_t x, int *exponent);
double_t log (double_t x);
double_t log10 (double_t x); 
double_t log1p (double_t x);
double_t log2 (double_t x);
double_t logb (double_t x);
float modff (float x, float *iptrf);
double modf  (double x, double *iptr);

Trigonometric Functions

double_t cos(double_t x);
double_t sin(double_t x);
double_t tan (double_t x);
double_t acos (double_t x);
double_t asin (double_t x);
double_t atan (double_t x);
double_t atan2 (double_t y, double_t x);

Hyperbolic Functions

double_t cosh (double_t x);
double_t sinh (double_t x);
double_t tanh (double_t x);
double_t acosh (double_t x);
double_t asinh (double_t x);
double_t atanh (double_t x);

Financial Functions

double_t compound (double_t rate, double_t periods);
double_t annuity (double_t rate, double_t periods);

Error and Gamma Functions

double_t erf  (double_t x);
double_t erfc (double_t x);
double_t gamma (double_t x);
double_t lgamma (double_t x);

Nextafter Functions

float nextafterf (float x, float y);
double nextafterd (double x, double y);

Hypotenuse Function

double_t hypot (double_t x, double_t y);

Random Number Generator Function

double_t randomx (double_t * x);


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996