C Reference function asin()

Usage of asin():

double asin(double x);


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():


	#define PI 3.14159265

		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. Both comments and pings are currently closed. Tweet This! Tweet This! or use to share this post with others.

Comments are closed.