sin

Syntax

sin(X)

Details

The sine function.

Note:
  • DolphinDB sin function accepts only one argument and supports calculations on scalars, vectors, and matrices.

  • NumPy sin function is a generalized ufunc that supports N-dimensional arrays of any shape. You can control the output and apply conditional computation through parameters such as out and where.

  • TA-Lib SIN is a mathematical transformation function designed to process one-dimensional price series or arrays.

Parameters

X is a scalar/vector/matrix.

Returns

A DOUBLE scalar, vector, or matrix.

Examples

sin(1 2 3);
// output: [0.841471,0.909297,0.141120]