beautypg.com

Cosh, Cosh div – Zilog Z8F0130 User Manual

Page 461

background image

UM013037-1212

cosh

Zilog Developer Studio II – Z8 Encore!

User Manual

437

Example

double y=.1234;

double x;

x=cos(y)

cosh

Computes the hyperbolic cosine of x. A range error occurs if the magnitude of x is too
large.

Synopsis

#include

double cosh(double x);

Returns

The hyperbolic cosine value.

Example

double y=.1234;

double x

x=cosh(y);

div

Computes the quotient and remainder of the division of the numerator

numer

by the

denominator

denom

. If the division is inexact, the sign of the quotient is that of the mathe-

matical quotient, and the magnitude of the quotient is the largest integer less than the mag-
nitude of the mathematical quotient.

Synopsis

#include

div_t div(int numer, int denom);

Returns

A structure of type div_t, comprising both the quotient and the remainder. The structure
contains the following members, in either order:

int quot;/* quotient */

int rem;/* remainder */

Example

int x=25;

int y=3;