Difference between revisions of "cos"
Jump to navigation
Jump to search
m (Bot: Reverted to revision 84225 by kenoxite on 20140925T08:52:48Z) 
m (Text replacement  "gr1= Geometry GROUP1=" to "gr1= Math  Geometry GROUP1=") 

(11 intermediate revisions by 3 users not shown)  
Line 1:  Line 1:  
−  {{Command=  +  {{CommandComments= 
____________________________________________________________________________________________  ____________________________________________________________________________________________  
−   ofp   +   ofp Game name= 
−  1.00  +  1.00Game version= 
+  
+  gr1= Math  Geometry GROUP1=  
____________________________________________________________________________________________  ____________________________________________________________________________________________  
−   Cosine of a number, argument in degrees. =  +   Cosine of a number, argument in degrees. DESCRIPTION= 
____________________________________________________________________________________________  ____________________________________________________________________________________________  
−   '''cos''' x =  +   '''cos''' x SYNTAX= 
−  p1= x: [[Number]] =  +  p1= x: [[Number]] PARAMETER1= 
−   [[Number]] =  +   [[Number]] RETURNVALUE= 
____________________________________________________________________________________________  ____________________________________________________________________________________________  
−  x1= <code>[[cos]] 60;//returns 0.5</code> =  +  x1= <code>[[cos]] 60;//returns 0.5</code> EXAMPLE1= 
____________________________________________________________________________________________  ____________________________________________________________________________________________  
−   [[acos]], [[sin]], [[asin]], [[tan]], [[atan]], [[atan2]] =  +   [[acos]], [[sin]], [[asin]], [[tan]], [[atan]], [[atan2]] SEEALSO= 
}}  }}  
Line 29:  Line 31:  
<dd class="notedate">Posted on August 8, 2006  23:54  <dd class="notedate">Posted on August 8, 2006  23:54  
−  <dt class="note">  +  <dt class="note">[[User:Hardrockhardrock]]<dd class="note">Be aware that there might be rounding errors in the results of this command. 
cos 90  cos 90  
Line 51:  Line 53:  
[[Category:Scripting Commands OFP 1.96COS]]  [[Category:Scripting Commands OFP 1.96COS]]  
[[Category:Scripting Commands OFP 1.46COS]]  [[Category:Scripting Commands OFP 1.46COS]]  
−  [[Category:Scripting Commands  +  [[Category:Scripting Commands Armed AssaultCOS]] 
−  +  [[Category:Scripting Commands Arma 2{{uc:{{PAGENAME}}}}]]  
−  [[Category:Scripting Commands  
[[Category:Scripting Commands Arma 3{{uc:{{PAGENAME}}}}]]  [[Category:Scripting Commands Arma 3{{uc:{{PAGENAME}}}}]]  
−  [[Category:  +  [[Category:Scripting Commands Take On Helicopters{{uc:{{PAGENAME}}}}]] 
Latest revision as of 00:25, 27 September 2020
Hover & click on the images for descriptions
Description
 Description:
 Cosine of a number, argument in degrees.
Syntax
Examples
 Example 1:

cos 60;//returns 0.5
Additional Information
Notes
Notes
 Posted on August 8, 2006  23:54
 hardrock
 Be aware that there might be rounding errors in the results of this command. cos 90 for example doesn't return the expected '0', but '4.37114e008'. So, if you want to compare results of Cosinus, don't use the compare operator (cos 90)==0 but rather use less than. (cos 90) < 0.00001
Bottom Section
Categories:
 Scripting Commands
 Scripting Commands Operation Flashpoint
 Scripting Commands Operation Flashpoint: Resistance
 Command Group: Math  Geometry
 Introduced with Operation Flashpoint version 1.00
 Scripting Commands OFP 1.99
 Scripting Commands OFP 1.96
 Scripting Commands OFP 1.46
 Scripting Commands Armed Assault
 Scripting Commands Arma 2
 Scripting Commands Arma 3
 Scripting Commands Take On Helicopters