C Math asin() Function
Example
Return the arcsine of different numbers:
printf("%f", asin(0.64));
printf("%f", asin(-0.4));
printf("%f", asin(0.0));
printf("%f", asin(1.0));
printf("%f", asin(-1.0));
printf("%f", asin(2.0));
Try it Yourself »
Definition and Usage
The asin()
function returns the arcsine of a number in radians.
The asin()
function is defined in the <math.h>
header file.
Syntax
One of the following:
asin(double number);
Parameter Values
Parameter | Description |
---|---|
number |
Required. A number to find the arcsine of, in the range -1 to 1. If the value is outside -1 to 1, it returns NaN (Not a Number). |
Technical Details
Returns: |
A double value representing the arcsine of a number.
|
---|