acos()
Anonymous contributor
Anonymous contributor1 total contribution
Anonymous contributor
Published Oct 14, 2023
Contribute to Docs
The acos()
method of the Lua math library returns the arc cosine of the argument, in radians.
Syntax
math.acos(x)
Where -1 <= x <= 1.
Example
The code below will print the arc cosine of 0.5
to the console.
print(math.acos(0.5))
The output will be:
1.0471975511966
All contributors
- Anonymous contributorAnonymous contributor1 total contribution
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.