std::asin(std::complex)
From cppreference.com
| Defined in header <complex>
|
||
| template< class T > std::complex<T> asin( const std::complex<T>& z ); |
(since C++11) | |
Computes complex arc sine of a complex value z. Branch cut exists outside the interval [−1, +1] along the real axis.
Contents |
[edit] Parameters
| z | - | complex value |
[edit] 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.
[edit] 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 arcsin z = -iln(iz + √1-z2
).
| π |
| 2 |
[edit] Example
Run this code
#include <cmath> #include <complex> #include <iostream> int main() {