Vector Trigonometric ACos (ACOS)
Summary
Element-wise arc cosine of the input series.
Formula
outReal[i] = acos(inReal[i])
Notes
- Outside [-1, 1] there is no angle whose cosine is that value, so those elements come out NaN.
Inputs
inReal— input values (expected in [-1, 1])
Outputs
outReal— arc cosine of each input, in radians
Properties
Numerical Stability: Start-Independent
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
| ✅ Can Output NaN or ±Inf i |
| ☐ Identity at Period 1 |
Implementation
TA-Lib Definition: acos.c · acos.yaml
| Native | File |
|---|---|
| C | ta_ACOS.c |
| Rust | acos.rs |
| Java | Core_ACOS.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Arc Cosine, Inverse Cosine, arccos
See Also
References
- Wikipedia, Inverse trigonometric functions: en.wikipedia.org/wiki/Inverse_trigonometric_functions