##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# casinf, casin, casinl

From cppreference.com
< c‎ | numeric‎ | complex

Defined in header `<complex.h>` |  |
float complex casinf( float complex z ); |  | (since C99)
double complex casin( double complex z ); |  | (since C99)
long double complex casinl( long double complex z ); |  | (since C99)

Computes the complex arc sine of `z` with branch cuts outside the interval [−1,+1] along the real axis.

### [edit] Parameters

z | - | complex argument

### [edit] Return value

The complex arc sine of `z` in the interval (−∞; ∞) along the imaginary axis and in the interval [−π/2; +π/2] along the real axis.

### [edit] Example

Run this code

    #include <stdio.h>
    #include <complex.h>

    int main(void)
    {
        double complex z;

        z = csin(1.0+2.0*I);
        printf("csin(1.0+2.0i)            ==> %f%+fi\n", creal(z),cimag(z));

        z = casin(3.165779+1.959601*I);
        printf("casin(3.165779+1.959601i) ==> %f%+fi\n", creal(z),cimag(z));

        return 0;
    }

Output:

    csin(1.0+2.0i)            ==> 3.165779+1.959601i
    casin(3.165779+1.959601i) ==> 1.000000+2.000000i

### [edit] See also

cacos cacosf cacosl (C99)(C99)(C99) | computes the complex arc cosine (function) [edit]
catan catanf catanl (C99)(C99)(C99) | computes the complex arc tangent (function) [edit]
csin csinf csinl (C99)(C99)(C99) | computes the complex sine (function) [edit]
asin asinf asinl (C99)(C99) | computes arc sine (arcsin(x)) (function) [edit]
C++ documentation for asin

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/complex/casin&oldid=70580"