Vector Trigonometric Cosh (COSH)
Summary
Element-wise hyperbolic cosine of the input series.
Formula
outReal[i] = cosh(inReal[i]) = (e^{inReal[i]} + e^{-inReal[i]}) / 2
Inputs
inReal— Input values to transform
Outputs
outReal— Hyperbolic cosine of each input
Properties
Numerical Stability: Start-Independent
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
| ☐ Can Output NaN or ±Inf |
| ☐ Identity at Period 1 |
Implementation
TA-Lib Definition: cosh.c · cosh.yaml
| Native | File |
|---|---|
| C | ta_COSH.c |
| Rust | cosh.rs |
| Java | Core_COSH.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Hyperbolic Cosine
See Also
References
- Wikipedia, Hyperbolic functions: en.wikipedia.org/wiki/Hyperbolic_functions