[PD] arccos / inverse cos in pd ?

Jerome Etienne jme at off.net
Wed Dec 10 22:51:09 CET 2003


thanks :)

i attached the patch just in case somebody find it usefull.

On Wed, Dec 10, 2003 at 04:49:42PM -0500, Mathieu Bouchard wrote:
> arccos(x) = arctan(tan(arccos(x))) = arctan(sqrt(1-x^2)/x)
> and pd has [atan].
-------------- next part --------------
#N canvas 253 145 450 337 10;
#X obj 151 145 *;
#X obj 151 120 t 0 0;
#X obj 151 172 * -1;
#X obj 151 197 + 1;
#X obj 151 221 sqrt;
#X obj 151 244 /;
#X obj 151 96 t 0 0;
#X obj 151 267 atan;
#X obj 151 61 inlet;
#X obj 151 293 outlet;
#X text 70 23 acos(x) = atan( sqrt( 1 - x^2 ) / x );
#X text 70 3 acos compute the arccos using the formula;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 7 0;
#X connect 6 0 1 0;
#X connect 6 1 5 1;
#X connect 7 0 9 0;
#X connect 8 0 6 0;


More information about the Pd-list mailing list