aboutsummaryrefslogtreecommitdiff
path: root/tanh.pd
diff options
context:
space:
mode:
authorFrank Barknecht <fbar@users.sourceforge.net>2008-11-16 19:26:12 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 14:40:10 +0200
commit56a5f7d890e96ba76606e68f9b1b2ab2ac5a230a (patch)
tree7fee6a9f591b3b1c53d5bafa152f062db1c4ba3e /tanh.pd
parentecc584138a83d36a0738eba12aa6e25f28ea3ddd (diff)
trig functions: sinh, cosh and tanh implemented with exp
svn path=/trunk/abstractions/purepd/; revision=10369
Diffstat (limited to 'tanh.pd')
-rw-r--r--tanh.pd22
1 files changed, 22 insertions, 0 deletions
diff --git a/tanh.pd b/tanh.pd
new file mode 100644
index 0000000..84a22ab
--- /dev/null
+++ b/tanh.pd
@@ -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;