std::asin(std::complex) (3) - Linux Manuals
std::asin(std::complex): std::asin(std::complex)
NAME
std::asin(std::complex) - std::asin(std::complex)
Synopsis
Defined in header <complex>
template< class T > (since C++11)
complex<T> asin( const complex<T>& z );
Computes complex arc sine of a complex value z. Branch cut exists outside the interval [−1 ; +1] along the real axis.
Parameters
z - complex value
Return value
If no errors occur, complex arc sine of z is returned, in the range of a strip unbounded along the imaginary axis and in the interval [−π/2; +π/2] along the real axis.
Errors and special cases are handled as if the operation is implemented by -i * std::asinh(i*z), where i is the imaginary unit.
Notes
Inverse sine (or arc sine) is a multivalued function and requires a branch cut on the complex plane. The branch cut is conventionally placed at the line segments (-∞,-1) and (1,∞) of the real axis.
The mathematical definition of the principal value of arc sine is asin z = -iln(iz +
√
1-z2
)
For any z, asin(z) = acos(-z) -
π
2
Example
// Run this code
Output:
See also
acos(std::complex) computes arc cosine of a complex number (arccos(z))
(C++11)
atan(std::complex) computes arc tangent of a complex number (arctan(z))
(C++11)
sin(std::complex) (function template)
asin
asinf
asinl computes arc sine (arcsin(x))
(C++11)
(C++11)
asin(std::valarray) (function template)