datatable.math.cos()

Compute the trigonometric cosine of angle x measured in radians.

This function can only be applied to numeric columns (real, integer, or boolean), and produces a float64 result, except when the argument x is float32, in which case the result is float32 as well.

See also

  • sin(x) – the trigonometric sine function;

  • arccos(x) – the inverse cosine function.