beautypg.com

Acos, acosf, Asin, asinf, Acos, acosf asin, asinf – Zilog ZUSBOPTS User Manual

Page 436: Returns, Example, Synopsis

background image

Standard Functions

UM017105-0511

408

Zilog Developer Studio II – ZNEO™
User Manual

Returns

The absolute value.

Example

int I=-5632;

int j;

j=abs(I);

acos, acosf

Computes the principal value of the arc cosine of

x

. A domain error occurs for arguments

not in the range [-1,+1].

Synopsis

#include

double acos(double x);

float acosf(float x);

Returns

The arc cosine in the range [0, pi].

Example

double y=0.5635;

double x;

x=acos(y)

asin, asinf

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);

float asinf(float x);

Returns

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

This manual is related to the following products: