math.acos

Full name
math.acos
Library
math
Syntax

math.acos(x)

Description

The math.acos function returns the angle in radians whose cosine is x.

Parameters
  • x: Cosine of the angle to obtain.
Result

The math.acos function returns a real number in the closed interval [0, π].

Examples

Below are several examples of how to use this function:

math.acos(-1)
3.141592653589793
math.acos(0)
1.5707963267948966
math.acos(1)
0.0
Submitted by admin on Tue, 02/02/2021 - 09:16