Welcome to the Creatures Wiki! Log in and join the community.

ACOS

From Creatures Wiki
Jump to navigation Jump to search

ACOS is a CAOS function equivalent to the mathematical arccosine.

Usage[edit]

Syntax: ACOS c (float)

Returns, as a float in degrees, the arccosine of c, i.e. the angle whose cosine is c. It is the inverse of COS_.

Domain and range[edit]

c must be between -1 and 1. Calling ACOS with values outside this domain will return NaN, which is a special float value. ACOS returns, in contrast to the other inverse trigonometric functions, a value between 0 and 180.

Editnorn.png This article about a CAOS command or function needs further examples.

See also[edit]

  • COS_
  • ASIN and ATAN, the other inverse trigonometric functions

References[edit]