forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathacos.lcdoc
More file actions
59 lines (38 loc) · 1.28 KB
/
acos.lcdoc
File metadata and controls
59 lines (38 loc) · 1.28 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
48
49
50
51
52
53
54
55
56
57
58
Name: acos
Type: function
Syntax: the acos of <number>
Syntax: acos(<number>)
Summary:
<return|Returns> the arc cosine of a number, in radians.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
acos(-1)
Example:
acos(cos(.3))
Example:
acos(field "Opposite" + field "Sine")
Parameters:
number:
A number between -1 and 1, or an expression that evaluates to such a
number.
Returns:
The <acos> function <return|returns> a number between zero and pi.
The result:
The result of the <acos> function is <return|returned> in radians. To
get this result in <degree|degrees>, use the following <function> :.
Description:
Use the <acos> <function> to find the arc cosine of a number.
The arc cosine of <number> is an angle whose cosine is equal to
<number>. In other words, <acos> is an <inverse> of the <cos>
<function>.
function acosInDegrees theMagnitude
return acos(theMagnitude) * 180 / pi
end acosInDegrees
If a math operation on finite inputs produces a non-finite output, an
execution error is thrown. See <math operation|math operations> for more
information.
References: pi (constant), function (control structure), cos (function),
return (glossary), degree (glossary), inverse (keyword), math operation (glossary)
Tags: math