sin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *V([a-z ])" to "$1 - v$2")
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.00


|1.00
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|gr1= Math - Geometry
|gr1= Math - Geometry


| Sine of x, argument in [[Number#Degrees|Degrees]].
|descr= Sine of x.


| '''sin''' x
|s1= [[sin]] x


|p1= x: [[Number]]
|p1= x: [[Number]] - value in degree


| [[Number]]
|r1= [[Number]]
 
|x1= <code>_sine = [[sin]] 30;{{cc|//result is 0.5}}</code>


| [[cos]] [[tan]]
|x1= <sqf>_sine = sin 30; // result is 0.5</sqf>
 
|seealso= [[cos]] [[tan]]
}}
}}
[[Category:Scripting Commands|SIN]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SIN]]
[[Category:Scripting Commands OFP 1.46|SIN]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 16:53, 8 November 2023

Hover & click on the images for description

Description

Description:
Sine of x.
Groups:
Math - Geometry

Syntax

Syntax:
sin x
Parameters:
x: Number - value in degree
Return Value:
Number

Examples

Example 1:
_sine = sin 30; // result is 0.5

Additional Information

See also:
cos tan

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note