C Reference function asin()
Usage of asin():
double asin(double x);
Parameters:
The value of x must be within the range of -1 to +1 (inclusive).
Return value:
The returned value is in the range of -p/2 to +p/2 (inclusive).
Source code example of asin():
#include<stdio.h>
#include<math.h>
#define PI 3.14159265
main()
{
double input, output;
input = 0.3;
output = asin (input) * 180.0 / PI;
printf ("Arc sine of %lf is %lf degrees\n", input, output );
return 0;
}
Output of the asin example program above:
Arc sine of 0.300000 is 17.457603 degrees.
This entry was posted in C Reference math.h Functions.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Tweet This! or use
to share this post with others.