COS
Summary
Element-wise trigonometric cosine of the input series. Applies the C library cos() to each sample.
Formula
outReal[i] = cos(inReal[i])
Inputs
inReal— Input values, treated as angles in radians
Outputs
outReal— Cosine of each input value
Implementation
TA-Lib Definition: cos.c · cos.yaml
| Native | File |
|---|---|
| C | ta_COS.c |
| Rust | cos.rs |
| Java | Core.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Cosine, Vector Trigonometric Cos