asin


asin

Calculates the inverse sine of a number

 #include <math.h> double asin ( double x  ); float asinf ( float x  );         (C99) long double asinl ( long double x  );         (C99) 

asin( ) implements the inverse sine function, commonly called arc sine. The argument x must be between -1 and 1, inclusive: -1 x 1. If x is outside the functions domainthat is, if x is greater than 1 or less than -1the function incurs a domain error.

The return value is given in radians, and is thus in the range -p/2 asin(x)

This code produces the following output:

 The sun's altitude is 61°. 

See Also

Arcsine functions for complex numbers: casin( ), casinf( ), and casinl( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net