supernova: fix boost.thread move semantics
[supercollider.git] / Help / Math / Number.html
blob1646049924cb8d8a2b80bb820a5107ed8d02ccc5
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="1038.25">
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: 14.0px Helvetica}
13 p.p4 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica; min-height: 14.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica}
15 p.p6 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica}
16 span.s1 {font: 18.0px Helvetica}
17 span.Apple-tab-span {white-space:pre}
18 </style>
19 </head>
20 <body>
21 <p class="p1"><span class="s1"><b>Number<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>mathematical quantity</b></p>
22 <p class="p2"><br></p>
23 <p class="p1"><b>Superclass: </b><a href="../Core/Object.html">Object</a> : <a href="Magnitude.html">Magnitude</a><span class="Apple-converted-space"> </span></p>
24 <p class="p2"><br></p>
25 <p class="p1">Number represents a mathematical quantity.</p>
26 <p class="p2"><br></p>
27 <p class="p3"><b>Math</b></p>
28 <p class="p4"><br></p>
29 <p class="p5"><b><span class="Apple-tab-span"> </span>+ aNumber</b></p>
30 <p class="p4"><span class="Apple-tab-span"> </span></p>
31 <p class="p5"><span class="Apple-tab-span"> </span>Addition.</p>
32 <p class="p4"><span class="Apple-tab-span"> </span></p>
33 <p class="p5"><span class="Apple-tab-span"> </span><b>- aNumber</b></p>
34 <p class="p4"><span class="Apple-tab-span"> </span></p>
35 <p class="p5"><span class="Apple-tab-span"> </span>Subtraction.</p>
36 <p class="p4"><span class="Apple-tab-span"> </span></p>
37 <p class="p5"><span class="Apple-tab-span"> </span><b>* aNumber</b></p>
38 <p class="p4"><span class="Apple-tab-span"> </span></p>
39 <p class="p5"><span class="Apple-tab-span"> </span>Multiplication.</p>
40 <p class="p4"><span class="Apple-tab-span"> </span></p>
41 <p class="p5"><span class="Apple-tab-span"> </span><b>/ aNumber</b></p>
42 <p class="p4"><span class="Apple-tab-span"> </span></p>
43 <p class="p5"><span class="Apple-tab-span"> </span>Division.</p>
44 <p class="p4"><span class="Apple-tab-span"> </span></p>
45 <p class="p5"><span class="Apple-tab-span"> </span><b>div(aNumber)</b></p>
46 <p class="p4"><span class="Apple-tab-span"> </span></p>
47 <p class="p5"><span class="Apple-tab-span"> </span>Integer division.</p>
48 <p class="p4"><span class="Apple-tab-span"> </span></p>
49 <p class="p5"><span class="Apple-tab-span"> </span><b>% aNumber</b></p>
50 <p class="p4"><span class="Apple-tab-span"> </span></p>
51 <p class="p5"><span class="Apple-tab-span"> </span>Modulo.</p>
52 <p class="p4"><span class="Apple-tab-span"> </span></p>
53 <p class="p5"><span class="Apple-tab-span"> </span><b>** aNumber</b></p>
54 <p class="p4"><span class="Apple-tab-span"> </span></p>
55 <p class="p5"><span class="Apple-tab-span"> </span>Exponentiation.</p>
56 <p class="p4"><span class="Apple-tab-span"> </span></p>
57 <p class="p5"><span class="Apple-tab-span"> </span><b>squared</b></p>
58 <p class="p4"><span class="Apple-tab-span"> </span></p>
59 <p class="p5"><span class="Apple-tab-span"> </span>The square of the number.</p>
60 <p class="p4"><span class="Apple-tab-span"> </span></p>
61 <p class="p5"><span class="Apple-tab-span"> </span><b>cubed</b></p>
62 <p class="p4"><span class="Apple-tab-span"> </span></p>
63 <p class="p5"><span class="Apple-tab-span"> </span>The cube of the number.</p>
64 <p class="p4"><span class="Apple-tab-span"> </span></p>
65 <p class="p4"><br></p>
66 <p class="p4"><br></p>
67 <p class="p6"><b>Polar Coordinate Support</b></p>
68 <p class="p4"><br></p>
69 <p class="p5"><b><span class="Apple-tab-span"> </span>rho</b></p>
70 <p class="p4"><span class="Apple-tab-span"> </span></p>
71 <p class="p5"><span class="Apple-tab-span"> </span>Answer the polar radius of the number.</p>
72 <p class="p4"><span class="Apple-tab-span"> </span></p>
73 <p class="p5"><span class="Apple-tab-span"> </span><b>theta</b></p>
74 <p class="p4"><span class="Apple-tab-span"> </span></p>
75 <p class="p5"><span class="Apple-tab-span"> </span>Answer the polar angle of the number.</p>
76 <p class="p4"><span class="Apple-tab-span"> </span></p>
77 <p class="p4"><span class="Apple-tab-span"> </span></p>
78 <p class="p4"><span class="Apple-tab-span"> </span></p>
79 <p class="p4"><br></p>
80 <p class="p6"><b>Complex Number Support</b></p>
81 <p class="p4"><br></p>
82 <p class="p5"><b><span class="Apple-tab-span"> </span>real</b></p>
83 <p class="p4"><span class="Apple-tab-span"> </span></p>
84 <p class="p5"><span class="Apple-tab-span"> </span>Answer the real part of the number.</p>
85 <p class="p4"><span class="Apple-tab-span"> </span></p>
86 <p class="p5"><span class="Apple-tab-span"> </span><b>imag</b></p>
87 <p class="p4"><span class="Apple-tab-span"> </span></p>
88 <p class="p5"><span class="Apple-tab-span"> </span>Answer the imaginary part of the number.</p>
89 <p class="p4"><span class="Apple-tab-span"> </span></p>
90 <p class="p4"><span class="Apple-tab-span"> </span></p>
91 <p class="p4"><br></p>
92 <p class="p6"><b>Conversion</b></p>
93 <p class="p4"><br></p>
94 <p class="p5"><b><span class="Apple-tab-span"> </span>@ aNumber</b></p>
95 <p class="p4"><span class="Apple-tab-span"> </span></p>
96 <p class="p5"><span class="Apple-tab-span"> </span>Create a new Point whose x coordinate is the receiver and whose y coordinate is aNumber.</p>
97 <p class="p4"><span class="Apple-tab-span"> </span></p>
98 <p class="p5"><span class="Apple-tab-span"> </span><b>complex(imaginaryPart)</b></p>
99 <p class="p4"><span class="Apple-tab-span"> </span></p>
100 <p class="p5"><span class="Apple-tab-span"> </span>Create a new Complex number whose real part is the receiver with the given imaginary part.</p>
101 <p class="p4"><span class="Apple-tab-span"> </span></p>
102 <p class="p5"><span class="Apple-tab-span"> </span><b>polar(angle)</b></p>
103 <p class="p4"><span class="Apple-tab-span"> </span></p>
104 <p class="p5"><span class="Apple-tab-span"> </span>Create a new Polar number whose radius is the receiver with the given angle.</p>
105 <p class="p4"><span class="Apple-tab-span"> </span></p>
106 <p class="p4"><span class="Apple-tab-span"> </span></p>
107 <p class="p4"><span class="Apple-tab-span"> </span></p>
108 <p class="p4"><br></p>
109 <p class="p6"><b>Iteration</b></p>
110 <p class="p4"><br></p>
111 <p class="p5"><b><span class="Apple-tab-span"> </span>for(endval, function)</b></p>
112 <p class="p4"><span class="Apple-tab-span"> </span></p>
113 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>Calls function for numbers from <b>this</b> up to <b>endval</b>, inclusive, stepping each time by 1.</p>
114 <p class="p5"><span class="Apple-tab-span"> </span><b><span class="Apple-tab-span"> </span>endval</b> - a Number.</p>
115 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>function</b> - a Function which is passed two arguments, the first which is an number from this to</p>
116 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>endval, and the second which is a number from zero to the number of iterations minus one.</p>
117 <p class="p4"><span class="Apple-tab-span"> </span></p>
118 <p class="p5"><span class="Apple-tab-span"> </span><b>forBy(endval, step, function)</b></p>
119 <p class="p4"><span class="Apple-tab-span"> </span></p>
120 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>Calls function for numbers from <b>this </b>up to <b>endval</b> stepping each time by <b>step.</b></p>
121 <p class="p5"><span class="Apple-tab-span"> </span><b><span class="Apple-tab-span"> </span>endval</b> - a Number.</p>
122 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>step</b> - a Number.</p>
123 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>function</b> - a Function which is passed two arguments, the first which is an number from this to</p>
124 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>endval, and the second which is a number from zero to the number of iterations minus one.</p>
125 <p class="p4"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
126 <p class="p4"><span class="Apple-tab-span"> </span></p>
127 <p class="p5"><span class="Apple-tab-span"> </span><b>forSeries(second, last, function)</b></p>
128 <p class="p4"><span class="Apple-tab-span"> </span></p>
129 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>Calls function for numbers from <b>this </b>up to <b>endval</b> stepping each time by a step specified by <b>second.</b></p>
130 <p class="p5"><span class="Apple-tab-span"> </span><b><span class="Apple-tab-span"> </span>second</b> - a Number.</p>
131 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>last</b> - a Number.</p>
132 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>function</b> - a Function which is passed two arguments, the first which is an number from this to</p>
133 <p class="p5"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>endval, and the second which is a number from zero to the number of iterations minus one.</p>
134 <p class="p4"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
135 <p class="p4"><span class="Apple-tab-span"> </span></p>
136 <p class="p4"><span class="Apple-tab-span"> </span></p>
137 <p class="p4"><span class="Apple-tab-span"> </span></p>
138 </body>
139 </html>