Double-precision floating point (±1.7E±308, ~15 decimal digits)
1st Parameter
A numeric value in the range [-1, 1] for which the arc sine (inverse sine) is calculated
Read more about parameters of asin in parameters section
The asinfunction in C language Calculates the arc sine of the specified number.
The asin function computes the principal value of the arc sine of the input. The arc sine is the inverse function of sine. This function expects the input to be in the range [-1, 1], and it returns a value in the range [-π/2, π/2]. If the input is outside the range [-1, 1], the function returns NaN (Not a Number).
The asinfunction takes 1
parameter:
•
double `x`: A numeric value in the range [-1, 1] for which the arc sine (inverse sine) is calculated
Computes the arc sine (inverse sine) of a given value, returning the angle in radians within the range [-π/2, π/2].
The asin function return value :
Returns the arc sine of the input value, in radians, in the range [-π/2, π/2]
If the input is outside the range [-1, 1], it returns NaN
Output
This example demonstrates the basic usage of the `asin` function with different input values within the valid range.