template< class T >
complex<T> cosh( const complex<T>& z );
Computes complex hyperbolic cosine of a complex value z.
[edit] Parameters [edit] Return valueIf no errors occur, complex hyperbolic cosine of z is returned.
[edit] Error handling and special valuesErrors are reported consistent with math_errhandling.
If the implementation supports IEEE floating-point arithmetic,
(+0,+0)
, the result is (1,+0)
(+0,+â)
, the result is (NaN,±0)
(the sign of the imaginary part is unspecified) and FE_INVALID is raised(+0,NaN)
, the result is (NaN,±0)
(the sign of the imaginary part is unspecified)(x,+â)
(for any finite non-zero x), the result is (NaN,NaN)
and FE_INVALID is raised(x,NaN)
(for any finite non-zero x), the result is (NaN,NaN)
and FE_INVALID may be raised(+â,+0)
, the result is (+â,+0)
(+â,y)
(for any finite non-zero y), the result is +âcis(y)
(+â,+â)
, the result is (屉,NaN)
(the sign of the real part is unspecified) and FE_INVALID is raised(+â,NaN)
, the result is (+â,NaN)
(NaN,+0)
, the result is (NaN,±0)
(the sign of the imaginary part is unspecified)(NaN,+y)
(for any finite non-zero y), the result is (NaN,NaN)
and FE_INVALID may be raised(NaN,NaN)
, the result is (NaN,NaN)
where cis(y) is cos(y) + i sin(y).
[edit] NotesMathematical definition of hyperbolic cosine is
cosh z =.
Hyperbolic cosine is an entire function in the complex plane and has no branch cuts. It is periodic with respect to the imaginary component, with period 2πi.
[edit] ExamplesOutput:
cosh(1.000000,0.000000) = (1.543081,0.000000) (cosh(1) = 1.543081) cosh(0.000000,1.000000) = (0.540302,0.000000) ( cos(1) = 0.540302)[edit] See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4