Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- exit()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- null
- () (parentheses)
- popStyle()
- pop()
- private
- public
- pushStyle()
- push()
- redraw()
- return
- ; (semicolon)
- setLocation()
- setResizable()
- setTitle()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
acos()
Description
The inverse of cos(), returns the arc cosine of a value. This function expects the values in the range of -1 to 1 and values are returned in the range 0 to PI (3.1415927).
Examples
float a = PI; float c = cos(a); float ac = acos(c); // Prints "3.1415927 : -1.0 : 3.1415927" println(a + " : " + c + " : " + ac);
float a = PI + PI/4.0; float c = cos(a); float ac = acos(c); // Prints "3.926991 : -0.70710665 : 2.3561943" println(a + " : " + c + " : " + ac);
Syntax
acos(value)
Parameters
value
(float)
the value whose arc cosine is to be returned
Return
float

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.