SIN: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[:Category:Internal_Macro_Functions|{{Up}}]] | |||
{{Command|syntax=[[Image:sin.png|right|SIN]]SIN <n> | {{Command|syntax=[[Image:sin.png|right|SIN]]SIN <n> | ||
|description=:Returns the sine value of the | |description=:Returns the sine value of the given angle. | ||
:The commands [[DEGREES]] and [[RADIANS]] are used to say whether angles are specified in degrees or radians. | |||
|param1=<n>|param1_desc={{n}} | |param1=<n>|param1_desc={{n}} | ||
Line 6: | Line 9: | ||
===Example=== | ===Example=== | ||
:SIN(14 | :a1 = SIN(14) | ||
:a1 = SIN(a1+2) | |||
:a1 = SIN(w1*int(14+a1)) | |||
[[Category:Internal_Macro_Functions]] | [[Category:Internal_Macro_Functions]] |
Latest revision as of 00:25, 4 January 2011
Command
- Returns the sine value of the given angle.
- The commands DEGREES and RADIANS are used to say whether angles are specified in degrees or radians.
Parameters
- <n>
- Anything that evaluates to a number. This can be a variable, a number, another function, or an expression which includes numbers, variables and/or functions.
- For example:
- 123
- r1
- r2 + r3
- (r1 + (abs(a1 * a2) / (b3 * 62)))
Example
- a1 = SIN(14)
- a1 = SIN(a1+2)
- a1 = SIN(w1*int(14+a1))