/usr/lib/pd/extra/zexy/cart2pol.pd is in pd-zexy 2.2.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #N canvas 437 75 457 368 10;
#X text 63 26 convert cartesian to polar coordinates;
#X obj 99 82 inlet x;
#X obj 82 331 outlet r;
#X obj 179 82 inlet y;
#X obj 259 82 inlet z;
#X obj 179 331 outlet phi;
#X text 294 141 r=sqrt(x^2+y^2);
#X text 296 161 phi=atan2(y \, x);
#X text 295 179 z=z;
#X obj 259 331 outlet z;
#X obj 99 125 unpack 0 0 0;
#X obj 138 170 t f f f;
#X obj 138 193 *;
#X obj 82 233 +;
#X obj 82 170 t f f f;
#X obj 82 193 *;
#X obj 82 265 sqrt;
#X obj 140 285 pack 0 0 0;
#X obj 140 305 unpack 0 0 0;
#X obj 172 221 pack;
#X obj 172 260 atan2;
#X msg 172 241 \$2 \$1;
#X text 219 241 pd>=0.38 has changed behaviour!;
#X obj 99 105 pack \$1 \$2 \$3;
#X text 333 8 part of zexy;
#X connect 1 0 23 0;
#X connect 3 0 23 1;
#X connect 4 0 23 2;
#X connect 10 0 14 0;
#X connect 10 1 11 0;
#X connect 10 2 17 2;
#X connect 11 0 12 0;
#X connect 11 1 12 1;
#X connect 11 2 19 1;
#X connect 12 0 13 1;
#X connect 13 0 16 0;
#X connect 14 0 15 0;
#X connect 14 1 15 1;
#X connect 14 2 19 0;
#X connect 15 0 13 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 2 0;
#X connect 18 1 5 0;
#X connect 18 2 9 0;
#X connect 19 0 21 0;
#X connect 20 0 17 1;
#X connect 21 0 20 0;
#X connect 23 0 10 0;
|