acos

 

Description

Calculate the arccosine and return the result in radians.

Syntax

double acos( double x )

Parameters

x
[input] independent variable

Return

acos(x)

Examples

EX1

void    acos_ex1()
{
    double        x = -1.;
    double        val = acos(x);
    
    printf("acos(%f) = %f\n", x, val);
}

Remark

See Also

cos

header to Include

origin.h

Reference