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: #001bb9}
23 span
.s6
{color: #3d6d1d}
24 span
.s7
{text-decoration: underline
; color: #002fe0}
25 span
.s8
{color: #0026b4}
26 span
.Apple-tab-span
{white-space:pre
}
30 <p class=
"p1"><span class=
"s1"><b>acos
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b></span><b>arccosine
</b></p>
31 <p class=
"p2"><br></p>
32 <p class=
"p1"><b>a.acos
</b></p>
33 <p class=
"p1"><b>acos(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">acos(
0);
</p>
40 <p class=
"p5">0.acos;
</p>
41 <p class=
"p6"><br></p>
42 <p class=
"p5">acos(
0) ==
0.5pi;
<span class=
"s3">// true
</span></p>
43 <p class=
"p7"><span class=
"s4">acos(
2);
</span>// nan: no value of absolute value greater
1.0</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">[
0.5,
0.8, [-
1,
1]].acos;
</p>
49 <p class=
"p7">// acos is the reverse of cos:
</p>
50 <p class=
"p5">c = sin(
<span class=
"s5">_
</span> +
0.5pi);
<span class=
"s3">// cos function
</span></p>
51 <p class=
"p5">c.([-
1, -
0.5,
0,
0.5,
1]).acos;
</p>
52 <p class=
"p6"><br></p>
53 <p class=
"p3"><span class=
"s2"><a href=
"../Core/Symbol.html">Symbol
</a></span></p>
54 <p class=
"p6"><br></p>
55 <p class=
"p8"><span class=
"s6">\foo
</span><span class=
"s4">.acos;
</span>// returns itself. this is used in Envelopes see
<a href=
"../Control/Env.html"><span class=
"s7">Env
</span></a>.
</p>
56 <p class=
"p6"><br></p>
57 <p class=
"p4"><br></p>
58 <p class=
"p3"><span class=
"s2"><a href=
"../Core/Kernel/Function.html">Function
</a></span></p>
59 <p class=
"p4"><br></p>
60 <p class=
"p5">f = acos({
<span class=
"s8">|x|
</span> sin(x) });
</p>
61 <p class=
"p5">f.value((
0.
.1000).normalize(
0,
8pi)).plot;
</p>
62 <p class=
"p6"><br></p>
63 <p class=
"p3"><span class=
"s2"><a href=
"../UGens/UGen.html">UGen
</a></span></p>
64 <p class=
"p6"><br></p>
67 <p class=
"p5"><span class=
"Apple-tab-span"> </span><span class=
"s5">var
</span> a =
<span class=
"s5">LFSaw
</span>.ar(
100);
</p>
68 <p class=
"p5"><span class=
"Apple-tab-span"> </span>[a, a.acos]
</p>
69 <p class=
"p5">}.plot
</p>
71 <p class=
"p6"><br></p>
74 <p class=
"p5"><span class=
"Apple-tab-span"> </span><span class=
"s5">var
</span> a;
</p>
75 <p class=
"p5"><span class=
"Apple-tab-span"> </span>a =
<span class=
"s5">Line
</span>.ar(-
1,
1,
0.01);
</p>
76 <p class=
"p5"><span class=
"Apple-tab-span"> </span>(a.acos /
0.5pi) -
1</p>
77 <p class=
"p5">}.plot
</p>
79 <p class=
"p6"><br></p>