/usr/lib/pd/extra/zexy/pol2sph.pd is in pd-zexy 2.2.7-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 | #N canvas 437 75 457 368 10;
#X obj 259 82 inlet z;
#X obj 99 82 inlet r;
#X obj 179 82 inlet phi;
#X text 63 26 convert polar to spherical coordinates;
#X obj 99 125 unpack 0 0 0;
#X obj 83 331 outlet R;
#X text 280 151 R=sqrt(r^2+z^2);
#X obj 179 331 outlet Phi;
#X obj 259 331 outlet Theta;
#X text 279 170 Phi=phi;
#X text 278 187 Theta=atan2(z \, r);
#X obj 99 275 pack 0 0 0;
#X obj 99 295 unpack 0 0 0;
#X obj 178 148 t f f f;
#X obj 178 169 *;
#X obj 99 148 t f f f;
#X obj 99 169 *;
#X obj 99 212 +;
#X obj 99 237 sqrt;
#X obj 164 255 atan2;
#X obj 164 213 pack;
#X msg 164 234 \$2 \$1;
#X obj 99 105 pack \$1 \$2 \$3;
#X text 335 8 part of zexy;
#X connect 0 0 22 2;
#X connect 1 0 22 0;
#X connect 2 0 22 1;
#X connect 4 0 15 0;
#X connect 4 1 11 1;
#X connect 4 2 13 0;
#X connect 11 0 12 0;
#X connect 12 0 5 0;
#X connect 12 1 7 0;
#X connect 12 2 8 0;
#X connect 13 0 14 0;
#X connect 13 1 14 1;
#X connect 13 2 20 1;
#X connect 14 0 17 1;
#X connect 15 0 16 0;
#X connect 15 1 16 1;
#X connect 15 2 20 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 11 2;
#X connect 20 0 21 0;
#X connect 21 0 19 0;
#X connect 22 0 4 0;
|