projects
/
matthijs
/
master-project
/
report.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13b245
)
Use save instead of clearObj in a MP drawing.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 29 Sep 2009 12:04:32 +0000
(14:04 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 29 Sep 2009 12:04:32 +0000
(14:04 +0200)
Chapters/Introduction.tex
patch
|
blob
|
history
diff --git
a/Chapters/Introduction.tex
b/Chapters/Introduction.tex
index 7458e2f850ade083fae0d0cab4f20f27ff0cd8dd..69fb7e403c0dea60697a32b2972add6a7c42aa61 100644
(file)
--- a/
Chapters/Introduction.tex
+++ b/
Chapters/Introduction.tex
@@
-26,6
+26,7
@@
andword = map not
\startMPcode
% Create objects
+ save a, inp, out;
newCircle.inp(btex $\overrightarrow{input}$ etex) "framed(false)";
num := 4;
for i=1 upto num:
@@
-55,11
+56,6
@@
andword = map not
drawObj(out);
% Draw a dotted line between the middle operations
ncline(a2)(a3) "linestyle(dashed withdots)", "arrows(-)";
-
- % Clear everything
- clearObj a;
- clearObj inp;
- clearObj out;
\stopMPcode
Slightly more complicated is the following incremental summation of values: