beautypg.com

Zilog Z8F0130 User Manual

Page 446

background image

Appendix B. C Standard Library

UM013037-1212

422

Zilog Developer Studio II – Z8 Encore!
User Manual

expression errno acquires the value of the ERANGE macro. If the result underflows (the
magnitude of the result is so small that it cannot be represented in an object of the speci-
fied type), the function returns zero.

Functions

The following sections list and briefly describe the mathematics functions:

Trigonometric

– see page 422

Hyperbolic

– see page 422

Exponential and Logarithmic

– see page 422

Power

– see page 423

Nearest Integer

– see page 423

Trigonometric

Hyperbolic

Exponential and Logarithmic

double acos(double x);

Calculates arc cosine of x.

double asin(double x)

Calculates arc sine of x.

double atan(double x);

Calculates arc tangent of x.

double atan2(double y, double x);

Calculates arc tangent of y/x.

double cos(double x);

Calculates cosine of x.

double sin(double x);

Calculates sine of x.

double tan(double x);

Calculates tangent of x.

double cosh(double x);

Calculates hyperbolic cosine of x.

double sinh(double x);

Calculates hyperbolic sine of x.

double tanh(double x);

Calculates hyperbolic tangent of x.

double exp(double x);

Calculates exponential function of x.

double frexp(double value, int
*exp);

Shows x as product of mantissa (the value returned
by frexp) and 2 to the n.

double ldexp(double x, int exp);

Calculates x times 2 to the exp.

double log(double x);

Calculates natural logarithm of x.