From 9c5ec6b643268469a3396b86506d24fbf8e0e8ae Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 17 Aug 2007 00:14:27 +0000 Subject: an attempt to smooth out the order, let's hope CVS doesn't choke on all the adds and removes svn path=/trunk/; revision=8607 --- doc/tutorials/intro/39.math_expr.pd | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/tutorials/intro/39.math_expr.pd (limited to 'doc/tutorials/intro/39.math_expr.pd') diff --git a/doc/tutorials/intro/39.math_expr.pd b/doc/tutorials/intro/39.math_expr.pd new file mode 100644 index 00000000..8b9f5c2a --- /dev/null +++ b/doc/tutorials/intro/39.math_expr.pd @@ -0,0 +1,32 @@ +#N canvas 10 40 620 460 12; +#X obj 304 137 cnv 15 80 25 empty empty empty 20 12 0 14 -261681 -66577 +0; +#X obj 192 137 cnv 15 80 25 empty empty empty 20 12 0 14 -261681 -66577 +0; +#X obj 10 10 cnv 15 400 40 empty empty math_expr 20 12 0 24 -228992 +-66577 0; +#X text 204 114 sqrt(x^2 + y^2); +#X obj 106 274 +; +#X obj 106 316 sqrt; +#X floatatom 106 373 7 0 0 0 - - -; +#X obj 79 230 pow 2; +#X obj 141 230 pow 2; +#X floatatom 321 141 5 0 0 0 y - -; +#X floatatom 208 141 5 0 0 0 x - -; +#X obj 238 290 expr sqrt(pow($f1 \, 2) + pow($f2 \, 2)); +#X floatatom 237 373 7 0 0 0 - - -; +#X obj 321 176 trigger bang float; +#X text 11 57 The [expr] object allows you to write out formulas in +the standard style of many programming languages.; +#X connect 4 0 5 0; +#X connect 5 0 6 0; +#X connect 7 0 4 0; +#X connect 8 0 4 1; +#X connect 9 0 13 0; +#X connect 10 0 7 0; +#X connect 10 0 11 0; +#X connect 11 0 12 0; +#X connect 13 0 7 0; +#X connect 13 0 11 0; +#X connect 13 1 11 1; +#X connect 13 1 8 0; -- cgit v1.2.1