Skip to content

cos

cos(radians) → number · Math

Cosine of an angle in radians.

  • radians (required): angle in radians
utlx
cos(0)         // 1.0
cos(pi())      // -1.0
cos(pi() / 2)  // ~0.0 (very small number due to floating point)

Released under AGPL-3.0.