Revision: 10369 http://pure-data.svn.sourceforge.net/pure-data/?rev=10369&view=rev Author: fbar Date: 2008-11-16 19:26:12 +0000 (Sun, 16 Nov 2008)
Log Message: ----------- trig functions: sinh, cosh and tanh implemented with exp
Added Paths: ----------- trunk/abstractions/purepd/cosh.pd trunk/abstractions/purepd/sinh.pd trunk/abstractions/purepd/tanh.pd
Added: trunk/abstractions/purepd/cosh.pd =================================================================== --- trunk/abstractions/purepd/cosh.pd (rev 0) +++ trunk/abstractions/purepd/cosh.pd 2008-11-16 19:26:12 UTC (rev 10369) @@ -0,0 +1,22 @@ +#N canvas 208 87 450 300 10; +#X obj 88 37 inlet; +#X obj 88 87 t a a; +#X obj 88 223 outlet; +#X obj 120 116 * -1; +#X obj 120 136 exp; +#X obj 88 136 exp; +#X obj 88 199 * 0.5; +#X text 323 133 2; +#X obj 88 174 +; +#X text 272 105 exp(x) + exp(-x); +#X text 223 117 cosh = ----------------; +#X obj 88 64 f $1; +#X connect 0 0 11 0; +#X connect 1 0 5 0; +#X connect 1 1 3 0; +#X connect 3 0 4 0; +#X connect 4 0 8 1; +#X connect 5 0 8 0; +#X connect 6 0 2 0; +#X connect 8 0 6 0; +#X connect 11 0 1 0;
Added: trunk/abstractions/purepd/sinh.pd =================================================================== --- trunk/abstractions/purepd/sinh.pd (rev 0) +++ trunk/abstractions/purepd/sinh.pd 2008-11-16 19:26:12 UTC (rev 10369) @@ -0,0 +1,22 @@ +#N canvas 0 0 450 300 10; +#X obj 88 37 inlet; +#X obj 88 87 t a a; +#X obj 88 223 outlet; +#X obj 120 116 * -1; +#X obj 120 136 exp; +#X obj 88 136 exp; +#X obj 88 174 -; +#X obj 88 199 * 0.5; +#X text 313 133 2; +#X text 272 105 exp(x) - exp(-x); +#X text 223 117 sinh = ----------------; +#X obj 88 64 f $1; +#X connect 0 0 11 0; +#X connect 1 0 5 0; +#X connect 1 1 3 0; +#X connect 3 0 4 0; +#X connect 4 0 6 1; +#X connect 5 0 6 0; +#X connect 6 0 7 0; +#X connect 7 0 2 0; +#X connect 11 0 1 0;
Added: trunk/abstractions/purepd/tanh.pd =================================================================== --- trunk/abstractions/purepd/tanh.pd (rev 0) +++ trunk/abstractions/purepd/tanh.pd 2008-11-16 19:26:12 UTC (rev 10369) @@ -0,0 +1,22 @@ +#N canvas 129 16 457 303 10; +#X obj 105 29 inlet; +#X obj 105 119 t a a; +#X obj 105 73 * 2; +#X obj 105 94 exp; +#X obj 105 172 / 1; +#X obj 105 199 outlet; +#X obj 105 148 - 1; +#X obj 137 148 + 1; +#X text 289 97 exp(2x) - 1; +#X text 290 125 exp(2x) + 1; +#X text 240 109 tanh = -----------; +#X obj 105 51 f $1; +#X connect 0 0 11 0; +#X connect 1 0 6 0; +#X connect 1 1 7 0; +#X connect 2 0 3 0; +#X connect 3 0 1 0; +#X connect 4 0 5 0; +#X connect 6 0 4 0; +#X connect 7 0 4 1; +#X connect 11 0 2 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.