acos()

Returns the angle whose cosine is the specified number (the inverse operation of cos()) .

Syntax

acos(x)

Arguments

  • x: A real number in range [-1, 1].

Returns

  • The value of the arc cosine of x
  • null if x < -1 or x > 1