Previous Page
Next Page

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


Previous Page
Next Page