1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <meta name=
"Generator" content=
"Cocoa HTML Writer">
8 <meta name=
"CocoaVersion" content=
"949.43">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
}
11 p
.p2
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; min-height: 14.0px}
12 p
.p3
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; color: #0021e7}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco
; color: #0034a8; min-height: 16.0px}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #ad140d}
17 p
.p8
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #9d1c12}
18 span
.s1
{font: 18.0px Helvetica
}
19 span
.s2
{text-decoration: underline
}
20 span
.s3
{color: #ad140d}
21 span
.s4
{color: #000000}
22 span
.s5
{color: #3d6d1d}
23 span
.s6
{text-decoration: underline
; color: #002fe0}
24 span
.s7
{color: #0026b4}
25 span
.s8
{color: #001bb9}
26 span
.Apple-tab-span
{white-space:pre
}
30 <p class=
"p1"><span class=
"s1"><b>atan
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b></span><b>arctangent
</b></p>
31 <p class=
"p2"><br></p>
32 <p class=
"p1"><b>a.atan
</b></p>
33 <p class=
"p1"><b>atan(a)
</b></p>
34 <p class=
"p2"><br></p>
35 <p class=
"p2"><br></p>
36 <p class=
"p2"><br></p>
37 <p class=
"p3"><span class=
"s2"><a href=
"../Math/SimpleNumber.html">SimpleNumber
</a></span></p>
38 <p class=
"p4"><br></p>
39 <p class=
"p5">atan(
1);
</p>
40 <p class=
"p5">1.atan;
</p>
41 <p class=
"p6"><br></p>
42 <p class=
"p5">atan(
1) ==
0.25pi;
<span class=
"s3">// true
</span></p>
43 <p class=
"p7"><span class=
"s4">atan(
2000.1);
</span>// any value can be mapped into the range of -
0.5pi ..
0.5pi by atan
</p>
44 <p class=
"p6"><br></p>
45 <p class=
"p6"><br></p>
46 <p class=
"p3"><span class=
"s2"><a href=
"../Collections/SequenceableCollection.html">SequenceableCollection
</a></span></p>
47 <p class=
"p6"><br></p>
48 <p class=
"p5">(-
100.
.100).atan.plot;
</p>
49 <p class=
"p7">// atan is the reverse of tan:
</p>
50 <p class=
"p5">atan(tan([-
1, -
0.5,
0,
0.5,
1]));
</p>
51 <p class=
"p6"><br></p>
52 <p class=
"p3"><span class=
"s2"><a href=
"../Core/Symbol.html">Symbol
</a></span></p>
53 <p class=
"p6"><br></p>
54 <p class=
"p8"><span class=
"s5">\foo
</span><span class=
"s4">.atan;
</span>// returns itself. this is used in Envelopes see
<a href=
"../Control/Env.html"><span class=
"s6">Env
</span></a>.
</p>
55 <p class=
"p6"><br></p>
56 <p class=
"p4"><br></p>
57 <p class=
"p3"><span class=
"s2"><a href=
"../Core/Kernel/Function.html">Function
</a></span></p>
58 <p class=
"p4"><br></p>
59 <p class=
"p5">f = atan({
<span class=
"s7">|x|
</span> sin(x) });
</p>
60 <p class=
"p5">f.value((
0.
.1000).normalize(
1,
8)).plot;
</p>
61 <p class=
"p6"><br></p>
62 <p class=
"p3"><span class=
"s2"><a href=
"../UGens/UGen.html">UGen
</a></span></p>
63 <p class=
"p6"><br></p>
64 <p class=
"p6"><br></p>
67 <p class=
"p5"><span class=
"Apple-tab-span"> </span><span class=
"s8">var
</span> a;
</p>
68 <p class=
"p5"><span class=
"Apple-tab-span"> </span>a =
<span class=
"s8">Line
</span>.ar(
0,
100,
0.01);
</p>
69 <p class=
"p5"><span class=
"Apple-tab-span"> </span>(a.atan /
0.25pi) -
1</p>
70 <p class=
"p5">}.plot
</p>
72 <p class=
"p6"><br></p>