asin()
Returns the arc sine in the radian measure.
Synopsis
float asin(float x);
Parameters
Parameter | Description |
---|---|
x | angle |
Return Value
Returns the arc sine in the radian measure.
If the argument is lying outside of the value range [-1..+1], NaN (Not a Number) is returned.
Description
Returns the arc sine between -Pi/2 and Pi/2 in the radian measure. x may be from -1 to 1, in the event of an error 0.0 is returned.
Example
main()
{
float pi = 3.141592,f;
f = sin(pi/2);
// results in 1
f = asin(1);
// results in PI/2
f = sinh(0.2);
//results in 0.201336
}
Assignment
Mathematical functions
Availability
CTRL