sin

Syntax

sin(X)

Parameters

X is a scalar/vector/matrix.

Details

The sine function.

Note:
DolphinDB's sin function accepts only one argument and supports calculations on scalars, vectors, and matrices. By contrast, NumPy's 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.

Examples

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