cosh
-
constexpr Complex cosh(const Complex &z) noexcept
Returns the complex cosh [1] of a complex number \(z\).
Parameters
- const Complex &z
A complex number.
Returns
- type Complex
A complex number.
The cosh function of a complex number is defined as:
\[\cosh z = \cosh x \cos y + i\sinh x \sin y\]
for \(\Re(z) = x\) and \(\Im(z) = y\).
Example
Complex z = 3 + 4_j;
std::cout << cosh(z) << "\n";
Output:
-6.58066 - 7.58155j
References