casin


casin

Calculates the inverse sine of a complex number

 #include <complex.h> double complex casin ( double complex z  ); float complex casinf ( float complex z  ); long double complex casinl ( long double complex z  ); 

The casin( ) functions accept a complex number as their argument and return a complex number, but otherwise work the same as asin( ). The real part of the return value is in the interval [-p/2, p/2].

Example

 puts("Results of the casin( ) function for integer values:"); float complex z = 0; for ( int n = -3;  n <= 3;  ++n) {   z = casinf(n);   printf("  casin(%+d) = %+.2f %+.2f*I\n", n, crealf(z), cimagf(z) ); } 

This code produces the following output:

 Results of the casin( ) function for integer values:   casin(-3) = -1.57 +1.76*I   casin(-2) = -1.57 +1.32*I   casin(-1) = -1.57 -0.00*I   casin(+0) = +0.00 +0.00*I   casin(+1) = +1.57 -0.00*I   casin(+2) = +1.57 +1.32*I   casin(+3) = +1.57 +1.76*I 

See Also

ccos( ), csin( ), ctan( ), cacos( ), casin( ), catan( )



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