beautypg.com

Asin, Atan, Asin atan – Zilog Z8F0130 User Manual

Page 456

background image

Appendix B. C Standard Library

UM013037-1212

432

Zilog Developer Studio II – Z8 Encore!
User Manual

Example

double y=0.5635;

double x;

x=acos(y)

asin

Computes the principal value of the arc sine of

x

. A domain error occurs for arguments not

in the range [-1,+1].

Synopsis

#include

double asin(double x);

Returns

The arc sine in the range [-pi/2,+pi/2].

Example

double y=.1234;

double x;

x = asin(y);

atan

Computes the principal value of the arc tangent of x.

Synopsis

#include

double atan(double x);

Returns

The arc tangent in the range (-pi/2, +pi/2).

Example

double y=.1234;

double x;

x=atan(y);