Skip to content
Vašek edited this page Jan 13, 2019 · 6 revisions

arccos

Returns the inverse cosine of value in radians

Syntax:

arccos(x)
Argument Description
double x The angle in radians to inverse cosine

Returns: double

Description:

This function returns the inverse cosine of x in radians. Any value other than between -1 and 1 returns NaN. If you want to return degrees instead of radians use function darccos().

Example:

double value;
value = arccos(1);

This code will set value to 0.

Example 2:

double value;
value = arccos(5);

This code will set value to NaN.

Back to number_functions

Clone this wiki locally