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

arcsin

Returns the inverse sine of value in radians

Syntax:

arcsin(x)
Argument Description
double x The angle in radians to inverse sine

Returns: double

Description:

This function returns the inverse sine 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 darcsin().

Example:

double value;
value = arcsin(1);

This code will set value to 1,570797.

Example 2:

double value;
value = arcsin(5);

This code will set value to NaN.

Back to number_functions

Clone this wiki locally