Cosh, Cosh div – Zilog EZ80F916 User Manual
Page 359

UM014423-0607
C Standard Library
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
339
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
mathematical quotient, and the magnitude of the quotient is the largest integer less than
the magnitude 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;
div_t t;
int q;
int r;
t=div (x,y);
q=t.quot;
r=t.rem;