Skip to main content

cos

Returns the trigonometric cosine of an angle.

Special cases:

  • If the argument is NaN or an infinity, then the result is NaN.

The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic.

Works with:

  • Scalars
  • Timeseries
  • Curves
  • Lists/Arrays

Syntax

cos(var)