This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathcos.xml
More file actions
47 lines (47 loc) · 2.14 KB
/
Copy pathcos.xml
File metadata and controls
47 lines (47 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<doc>
<legacy_id>1537</legacy_id>
<name>cos</name>
<type>function</type>
<syntax>
<example>the cos of <i>angle</i></example>
<example>cos(<i>angle</i>)</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>Math, Logic, & Dates</category>
</classification>
<references>
<constant tag="pi">pi Constant</constant>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> the cosine of an angle (in <glossary tag="radian">radians</glossary>).</summary>
<examples>
<example>cos(pi)</example>
<example>the cos of 0</example>
<example>put cos(the startAngle of graphic 3) into field "Cosine"</example>
</examples>
<description>
<p>Use the <b>cos</b> <control_st tag="function">function</control_st> to find the cosine of an angle.</p><p/><p><b>Parameters:</b></p><p>The <i>angle</i> is a positive or <glossary tag="negative">negative</glossary> number, or an <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a number.</p><p/><p><b>Value:</b></p><p>The <b>cos</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a number between -1 and 1.</p><p/><p><b>Comments:</b></p><p>The <b>cos</b> <control_st tag="function">function</control_st> repeats every 2*pi <glossary tag="radian">radians</glossary>: cos(x) = cos(x + 2 * pi), for any value of x.</p><p/><p>The <b>cos</b> <control_st tag="function">function</control_st> requires its input to be in <glossary tag="radian">radians</glossary>. To provide an angle in <glossary tag="degree">degrees</glossary>, use the following <href tag="dictionary/property/2381.xml">custom function</href>:</p><p/><p> function cosInDegrees angleInDegrees</p><p> return cos(angleInDegrees * pi / 180)</p><p> end cosInDegrees</p>
</description>
</doc>