aboutsummaryrefslogtreecommitdiff
path: root/desiredata/doc/5.reference/math-help.pd
blob: 5464b8aa93374c6427cb9459dbd150f5b152d918 (plain)
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
59
60
#N canvas 0 0 554 555 12;
#X floatatom 283 263 0 0 0;
#X floatatom 226 349 0 0 0;
#X floatatom 226 262 0 0 0;
#X floatatom 281 486 0 0 0;
#X floatatom 281 425 0 0 0;
#X floatatom 185 486 0 0 0;
#X floatatom 185 425 0 0 0;
#X floatatom 117 486 0 0 0;
#X floatatom 117 425 0 0 0;
#X floatatom 117 326 0 0 0;
#X floatatom 117 265 0 0 0;
#X floatatom 30 486 0 0 0;
#X floatatom 30 425 0 0 0;
#X floatatom 218 186 0 0 0;
#X floatatom 135 182 0 0 0;
#X obj 66 146 sin;
#X floatatom 66 53 0 0 0;
#X floatatom 66 180 0 0 0;
#X obj 66 113 * 6.28319;
#X obj 66 83 / 360;
#X obj 135 148 cos;
#X obj 218 152 tan;
#X obj 30 456 sqrt;
#X obj 117 296 atan;
#X obj 117 456 log;
#X obj 185 456 exp;
#X obj 281 456 abs;
#X obj 226 290 float;
#X obj 283 290 t b f;
#X obj 226 319 atan2;
#X text 87 17 Higher math in Pd;
#X text 171 58 trig functions take inputs in radians;
#X text 24 213 The arc tangent takes two forms. The atan2 version takes an (x \, y) pair and gives you an output between -pi and pi.;
#X text 23 380 also \, square root \, natural logarithm and exponential \, and absolute value:;
#X text 292 529 updated for Pd version 0.33;
#X connect 0 0 28 0;
#X connect 2 0 27 0;
#X connect 4 0 26 0;
#X connect 6 0 25 0;
#X connect 8 0 24 0;
#X connect 10 0 23 0;
#X connect 12 0 22 0;
#X connect 15 0 17 0;
#X connect 16 0 19 0;
#X connect 18 0 15 0;
#X connect 18 0 20 0;
#X connect 18 0 21 0;
#X connect 19 0 18 0;
#X connect 20 0 14 0;
#X connect 21 0 13 0;
#X connect 22 0 11 0;
#X connect 23 0 9 0;
#X connect 24 0 7 0;
#X connect 25 0 5 0;
#X connect 26 0 3 0;
#X connect 27 0 29 0;
#X connect 28 0 27 0;
#X connect 28 1 29 1;
#X connect 29 0 1 0;