In the C Programming Language, the asin feature returns the arc sine of x.
Syntax
The syntax for the asin characteristic in the C Language is:
double asin(double x);
Parameters or Arguments
x A fee between -1 and 1. A area error will take place if x is not between -1 and 1.
Returns
The asin characteristic returns the arc sine of a quantity represented through x. It will return a cost between -π/2 and π/2.
Required Header
In the C Language, the required header for the asin function is:
#include <math.h>
Applies To
In the C Language, the asin function can be used in the following versions:
ANSI/ISO 9899-1990
asin Example
/* Example using asin by TechOnTheNet.com */
#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[])
{
/* Define temporary variables */
double value;
double result;
/* Assign the value we will find the asin of */
value = 0.5;
/* Calculate the Arc Sine of value */
result = asin(value);
/* Display the result of the calculation */
printf("The Arc Sine of %f is %f\n", value, result);
return 0;
}
When compiled and run, this software will output:
The Arc Sine of 0.500000 is 0.523599
Similar Functions
Other C functions that are similar to the asin function:
acos function atan characteristic atan2 characteristic cos function sin characteristic tan function
Leave a Review