Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
talib.ACOS
Calculates the arc cosine of each element (Vector Trigonometric ACos).
talib.ACOS(inReal)Examples
Compute the arc cosine of a few numbers.
javascript
function main() {
var data = [-1, 0, 1]
var ret = talib.ACOS(data)
// Output: about [3.1416, 1.5708, 0]
Log(ret)
}
python
import talib
import numpy as np
def main():
data = [-1.0, 0, 1.0]
ret = talib.ACOS(np.array(data))
# Output: about [3.1416, 1.5708, 0]
Log(ret)Returns
| Type | Description |
numeric array | Results, the same length as the input. |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
See Also
Remarks
TA-Lib equivalent: ACOS(Records[Close]) = Array(outReal).