cos
Syntax
cos(X)
Details
Applies the function of cos to X.
Note:
- Equivalent to NumPy's numpy.cos, except that it only
accepts a single parameter, X, and does not support parameters like
out or where in
numpy.cos. - Equivalent to TA-Lib's
COSfunction. The difference is that DolphinDBcosaccepts scalars, vectors, and matrices as input, whereas TA-LibCOSis primarily designed for one-dimensional NumPy arrays and does not support scalar or matrix inputs.
Parameters
X is a scalar/vector/matrix.
Returns
A scalar/vector/matrix of type DOUBLE.
