FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

acos()

   
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); 

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).
   
Syntax  
acos(value)
   
Parameters  
value   float: numbers between -1 and 1

   
Returns   float
   
Usage   Web & Application
   
Related   cos()
asin()
atan()
 
 






   
 
Updated: Fri Jul 15 16:35:28 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info