beautypg.com

Cos, cosf, Cosh, coshf, Cosh, coshf div – Zilog ZUSBOPTS User Manual

Page 442: Synopsis, Returns, Example

background image

Standard Functions

UM017105-0511

414

Zilog Developer Studio II – ZNEO™
User Manual

cos, cosf

Computes the cosine of x (measured in radians). A large magnitude argument can yield a
result with little or no significance.

Synopsis

#include

double cos(double x);

float cosf(float x);

Returns

The cosine value.

Example

double y=.1234;

double x;

x=cos(y);

cosh, coshf

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

Synopsis

#include

double cosh(double x);

float coshf(float 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-

This manual is related to the following products: