beautypg.com

Sinh, Sprintf, Sin sinh sprintf – Zilog Z8F0130 User Manual

Page 486

background image

Appendix B. C Standard Library

UM013037-1212

462

Zilog Developer Studio II – Z8 Encore!
User Manual

sin

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

Synopsis

#include

double sin(double x);

Returns

The sine value.

Example

double x=1.24;

double y;

y=sin[x];

sinh

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

Synopsis

#include

double sinh(double x);

Returns

The hyperbolic sine value.

Example

double x=1.24;

double y;

y=sinh(x);

sprintf

The

sprintf

function is equivalent to

printf

, except that the argument s specifies

an array into which the generated output is to be written, rather than to a stream. A null
character is written at the end of the characters written; it is not counted as part of the
returned sum.