Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Description

cos is a function that returns the cosine of a number.

Syntax

cos(number x)
  • x is the number to calculate the cosine of.

Examples

cos(0) // 1
cos(1) // 0.5403023058681398
cos(pi) // -1