-
-
Notifications
You must be signed in to change notification settings - Fork 18
arccos
Vašek edited this page Jan 13, 2019
·
6 revisions
Returns the inverse cosine of value in radians
arccos(x)
Argument | Description |
---|---|
double x |
The angle in radians to inverse cosine |
Returns: double
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()
.
double value;
value = arccos(1);
This code will set value
to 0.
double value;
value = arccos(5);
This code will set value
to NaN.
Back to number_functions