forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathatan.lcdoc
More file actions
58 lines (39 loc) · 1.33 KB
/
atan.lcdoc
File metadata and controls
58 lines (39 loc) · 1.33 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
Name: atan
Type: function
Syntax: the atan of <number>
Syntax: atan(<number>)
Summary:
<return|Returns> the arc tangent of a number in <radian|radians>.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
atan(0)
atan(tan(-1))
Example:
the atan of vectorMagnitude
Parameters:
number:
A positive or negative number, or an expression that evaluates to a
number.
Returns:
The <atan> <function> <return|returns> a number between -pi/2 and pi/2.
The result:
The result of the <atan> function is <return|returned> in
<radian|radians>. To get this result in <degree|degrees>, use the
following <custom function>:
function atanInDegrees pMagnitude
return atan(pMagnitude) * 180 / pi
end atanInDegrees
Description:
Use the <atan> <function> to find the arc tangent of a number.
The arc tangent of <number> is an angle whose tangent is equal to
<number>. In other words, <atan> is an <inverse> of the <tan>
<function>.
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), tan (function),
radian (glossary), custom function (glossary), return (glossary),
degree (glossary), inverse (keyword), math operation (glossary)
Tags: math