Skip to content

Commit 96df30d

Browse files
author
Allen Downey
committed
Updating stack diagrams
1 parent 2724d3d commit 96df30d

16 files changed

+147
-145
lines changed

book/figs/stack.eps

+10-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/figs/stack.fig

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#FIG 3.2 Produced by xfig version 3.2.5b
1+
#FIG 3.2 Produced by xfig version 3.2.5c
22
Landscape
33
Center
44
Inches
@@ -33,18 +33,19 @@ Single
3333
1425 1800 4950 1800 4950 2775 1425 2775 1425 1800
3434
2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5
3535
1425 975 4950 975 4950 1650 1425 1650 1425 975
36-
4 2 0 50 0 16 11 0.0000 4 135 405 2025 1200 line1\001
37-
4 2 0 50 0 16 11 0.0000 4 135 405 2025 1500 line2\001
38-
4 0 0 50 0 16 11 0.0000 4 180 1065 2550 1500 'tiddle bang.'\001
39-
4 2 0 50 0 16 11 0.0000 4 180 420 2025 2025 part1\001
40-
4 2 0 50 0 16 11 0.0000 4 180 420 2025 2325 part2\001
41-
4 2 0 50 0 16 11 0.0000 4 135 255 2025 2625 cat\001
42-
4 2 0 50 0 16 11 0.0000 4 135 480 2017 3150 bruce\001
43-
4 0 0 50 0 16 11 0.0000 4 180 1035 2550 1200 'Bing tiddle '\001
44-
4 0 0 50 0 16 11 0.0000 4 180 1035 2550 2025 'Bing tiddle '\001
45-
4 0 0 50 0 16 11 0.0000 4 180 1065 2550 2325 'tiddle bang.'\001
46-
4 0 0 50 0 16 11 0.0000 4 180 2010 2550 2625 'Bing tiddle tiddle bang.'\001
47-
4 0 0 50 0 16 11 0.0000 4 180 2010 2550 3150 'Bing tiddle tiddle bang.'\001
48-
4 2 0 50 0 16 11 0.0000 4 135 810 1275 1350 <module>\001
49-
4 2 0 50 0 16 11 0.0000 4 165 795 1275 2325 cat_twice\001
50-
4 2 0 50 0 16 11 0.0000 4 180 900 1275 3150 print_twice\001
36+
4 2 0 50 0 16 11 0.0000 4 135 450 2025 1200 line1\001
37+
4 2 0 50 0 16 11 0.0000 4 135 450 2025 1500 line2\001
38+
4 0 0 50 0 16 11 0.0000 4 165 1260 2550 1500 'tiddle bang.'\001
39+
4 2 0 50 0 16 11 0.0000 4 165 450 2025 2025 part1\001
40+
4 2 0 50 0 16 11 0.0000 4 165 450 2025 2325 part2\001
41+
4 2 0 50 0 16 11 0.0000 4 120 270 2025 2625 cat\001
42+
4 2 0 50 0 16 11 0.0000 4 135 450 2017 3150 bruce\001
43+
4 0 0 50 0 16 11 0.0000 4 165 1260 2550 1200 'Bing tiddle '\001
44+
4 0 0 50 0 16 11 0.0000 4 165 1260 2550 2025 'Bing tiddle '\001
45+
4 0 0 50 0 16 11 0.0000 4 165 1260 2550 2325 'tiddle bang.'\001
46+
4 0 0 50 0 16 11 0.0000 4 165 2340 2550 2625 'Bing tiddle tiddle bang.'\001
47+
4 0 0 50 0 16 11 0.0000 4 165 2340 2550 3150 'Bing tiddle tiddle bang.'\001
48+
4 2 0 50 0 16 11 0.0000 4 135 810 1275 2325 cat_twice\001
49+
4 2 0 50 0 16 11 0.0000 4 150 990 1275 3150 print_twice\001
50+
# __main__
51+
4 2 0 50 0 16 11 0.0000 4 135 720 1275 1350 __main__\001

book/figs/stack.fig.bak

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#FIG 3.2
1+
#FIG 3.2 Produced by xfig version 3.2.5b
22
Landscape
33
Center
44
Inches
@@ -33,18 +33,18 @@ Single
3333
1425 1800 4950 1800 4950 2775 1425 2775 1425 1800
3434
2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5
3535
1425 975 4950 975 4950 1650 1425 1650 1425 975
36-
4 2 0 50 0 16 11 0.0000 4 120 315 2025 1200 line1\001
37-
4 2 0 50 0 16 11 0.0000 4 120 315 2025 1500 line2\001
38-
4 0 0 50 0 16 11 0.0000 4 150 870 2550 1500 'tiddle bang.'\001
39-
4 2 0 50 0 16 11 0.0000 4 150 375 2025 2025 part1\001
40-
4 2 0 50 0 16 11 0.0000 4 150 375 2025 2325 part2\001
41-
4 2 0 50 0 16 11 0.0000 4 120 210 2025 2625 cat\001
42-
4 2 0 50 0 16 11 0.0000 4 120 375 2017 3150 bruce\001
43-
4 0 0 50 0 16 11 0.0000 4 150 840 2550 1200 'Bing tiddle '\001
44-
4 0 0 50 0 16 11 0.0000 4 150 840 2550 2025 'Bing tiddle '\001
45-
4 0 0 50 0 16 11 0.0000 4 150 870 2550 2325 'tiddle bang.'\001
46-
4 0 0 50 0 16 11 0.0000 4 150 1650 2550 2625 'Bing tiddle tiddle bang.'\001
47-
4 0 0 50 0 16 11 0.0000 4 150 1650 2550 3150 'Bing tiddle tiddle bang.'\001
48-
4 2 0 50 0 16 11 0.0000 4 150 675 1275 1350 __main__\001
49-
4 2 0 50 0 16 11 0.0000 4 150 660 1275 2325 cat_twice\001
50-
4 2 0 50 0 16 11 0.0000 4 150 780 1275 3150 print_twice\001
36+
4 2 0 50 0 16 11 0.0000 4 135 405 2025 1200 line1\001
37+
4 2 0 50 0 16 11 0.0000 4 135 405 2025 1500 line2\001
38+
4 0 0 50 0 16 11 0.0000 4 180 1065 2550 1500 'tiddle bang.'\001
39+
4 2 0 50 0 16 11 0.0000 4 180 420 2025 2025 part1\001
40+
4 2 0 50 0 16 11 0.0000 4 180 420 2025 2325 part2\001
41+
4 2 0 50 0 16 11 0.0000 4 135 255 2025 2625 cat\001
42+
4 2 0 50 0 16 11 0.0000 4 135 480 2017 3150 bruce\001
43+
4 0 0 50 0 16 11 0.0000 4 180 1035 2550 1200 'Bing tiddle '\001
44+
4 0 0 50 0 16 11 0.0000 4 180 1035 2550 2025 'Bing tiddle '\001
45+
4 0 0 50 0 16 11 0.0000 4 180 1065 2550 2325 'tiddle bang.'\001
46+
4 0 0 50 0 16 11 0.0000 4 180 2010 2550 2625 'Bing tiddle tiddle bang.'\001
47+
4 0 0 50 0 16 11 0.0000 4 180 2010 2550 3150 'Bing tiddle tiddle bang.'\001
48+
4 2 0 50 0 16 11 0.0000 4 135 810 1275 1350 <module>\001
49+
4 2 0 50 0 16 11 0.0000 4 165 795 1275 2325 cat_twice\001
50+
4 2 0 50 0 16 11 0.0000 4 180 900 1275 3150 print_twice\001

book/figs/stack.pdf

-124 Bytes
Binary file not shown.

book/figs/stack2.eps

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/figs/stack2.fig

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#FIG 3.2 Produced by xfig version 3.2.5b
1+
#FIG 3.2 Produced by xfig version 3.2.5c
22
Landscape
33
Center
44
Inches
@@ -29,16 +29,16 @@ Single
2929
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
3030
0 0 1.00 60.00 120.00
3131
2175 2722 2550 2722
32-
4 2 0 50 0 16 11 0.0000 4 135 810 1650 675 <module>\001
33-
4 2 0 50 0 16 11 0.0000 4 135 915 1650 1200 countdown\001
34-
4 2 0 50 0 16 11 0.0000 4 135 915 1650 1725 countdown\001
35-
4 2 0 50 0 16 11 0.0000 4 135 915 1650 2250 countdown\001
36-
4 2 0 50 0 16 11 0.0000 4 135 915 1650 2775 countdown\001
37-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 1200 n\001
38-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 1200 3\001
39-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 1725 n\001
40-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 1725 2\001
41-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 2250 n\001
42-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 2250 1\001
43-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 2775 n\001
44-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 2775 0\001
32+
4 2 0 50 0 16 11 0.0000 4 135 720 1650 675 __main__\001
33+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 1200 countdown\001
34+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 1725 countdown\001
35+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 2250 countdown\001
36+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 2775 countdown\001
37+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 1200 n\001
38+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 1200 3\001
39+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 1725 n\001
40+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 1725 2\001
41+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 2250 n\001
42+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 2250 1\001
43+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 2775 n\001
44+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 2775 0\001

book/figs/stack2.fig.bak

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#FIG 3.2
1+
#FIG 3.2 Produced by xfig version 3.2.5b
22
Landscape
33
Center
44
Inches
@@ -29,16 +29,16 @@ Single
2929
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
3030
0 0 1.00 60.00 120.00
3131
2175 2722 2550 2722
32-
4 2 0 50 0 16 11 0.0000 4 150 675 1650 675 __main__\001
33-
4 2 0 50 0 16 11 0.0000 4 120 780 1650 1200 countdown\001
34-
4 2 0 50 0 16 11 0.0000 4 120 780 1650 1725 countdown\001
35-
4 2 0 50 0 16 11 0.0000 4 120 780 1650 2250 countdown\001
36-
4 2 0 50 0 16 11 0.0000 4 120 780 1650 2775 countdown\001
37-
4 2 0 50 0 16 11 0.0000 4 90 90 2100 1200 n\001
38-
4 0 0 50 0 16 11 0.0000 4 120 90 2625 1200 3\001
39-
4 2 0 50 0 16 11 0.0000 4 90 90 2100 1725 n\001
40-
4 0 0 50 0 16 11 0.0000 4 120 90 2625 1725 2\001
41-
4 2 0 50 0 16 11 0.0000 4 90 90 2100 2250 n\001
42-
4 0 0 50 0 16 11 0.0000 4 120 90 2625 2250 1\001
43-
4 2 0 50 0 16 11 0.0000 4 90 90 2100 2775 n\001
44-
4 0 0 50 0 16 11 0.0000 4 120 90 2625 2775 0\001
32+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 675 <module>\001
33+
4 2 0 50 0 16 11 0.0000 4 135 915 1650 1200 countdown\001
34+
4 2 0 50 0 16 11 0.0000 4 135 915 1650 1725 countdown\001
35+
4 2 0 50 0 16 11 0.0000 4 135 915 1650 2250 countdown\001
36+
4 2 0 50 0 16 11 0.0000 4 135 915 1650 2775 countdown\001
37+
4 2 0 50 0 16 11 0.0000 4 105 105 2100 1200 n\001
38+
4 0 0 50 0 16 11 0.0000 4 135 105 2625 1200 3\001
39+
4 2 0 50 0 16 11 0.0000 4 105 105 2100 1725 n\001
40+
4 0 0 50 0 16 11 0.0000 4 135 105 2625 1725 2\001
41+
4 2 0 50 0 16 11 0.0000 4 105 105 2100 2250 n\001
42+
4 0 0 50 0 16 11 0.0000 4 135 105 2625 2250 1\001
43+
4 2 0 50 0 16 11 0.0000 4 105 105 2100 2775 n\001
44+
4 0 0 50 0 16 11 0.0000 4 135 105 2625 2775 0\001

book/figs/stack2.pdf

60 Bytes
Binary file not shown.

book/figs/stack3.eps

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/figs/stack3.fig

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#FIG 3.2 Produced by xfig version 3.2.5b
1+
#FIG 3.2 Produced by xfig version 3.2.5c
22
Landscape
33
Center
44
Inches
@@ -19,30 +19,30 @@ Single
1919
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
2020
0 0 1.00 60.00 120.00
2121
2175 1147 2550 1147
22-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 1200 n\001
23-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 1200 3\001
22+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 1200 n\001
23+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 1200 3\001
2424
-6
2525
6 3075 1050 4275 2250
2626
6 3075 1050 4275 1200
2727
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
2828
0 0 1.00 60.00 120.00
2929
3675 1147 4050 1147
30-
4 2 0 50 0 16 11 0.0000 4 105 630 3600 1200 recurse\001
31-
4 0 0 50 0 16 11 0.0000 4 135 105 4125 1200 2\001
30+
4 2 0 50 0 16 11 0.0000 4 90 630 3600 1200 recurse\001
31+
4 0 0 50 0 16 11 0.0000 4 135 90 4125 1200 2\001
3232
-6
3333
6 3075 1575 4275 1725
3434
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
3535
0 0 1.00 60.00 120.00
3636
3675 1672 4050 1672
37-
4 2 0 50 0 16 11 0.0000 4 105 630 3600 1725 recurse\001
38-
4 0 0 50 0 16 11 0.0000 4 135 105 4125 1725 1\001
37+
4 2 0 50 0 16 11 0.0000 4 90 630 3600 1725 recurse\001
38+
4 0 0 50 0 16 11 0.0000 4 135 90 4125 1725 1\001
3939
-6
4040
6 3075 2100 4275 2250
4141
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
4242
0 0 1.00 60.00 120.00
4343
3675 2197 4050 2197
44-
4 2 0 50 0 16 11 0.0000 4 105 630 3600 2250 recurse\001
45-
4 0 0 50 0 16 11 0.0000 4 135 105 4125 2250 1\001
44+
4 2 0 50 0 16 11 0.0000 4 90 630 3600 2250 recurse\001
45+
4 0 0 50 0 16 11 0.0000 4 135 90 4125 2250 1\001
4646
-6
4747
-6
4848
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
@@ -73,24 +73,24 @@ Single
7373
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
7474
0 0 1.00 60.00 120.00
7575
5025 1147 5400 1147
76-
4 2 0 50 0 16 11 0.0000 4 135 810 1650 675 <module>\001
77-
4 2 0 50 0 16 11 0.0000 4 135 660 1650 1200 factorial\001
78-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 1725 n\001
79-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 1725 2\001
80-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 2250 n\001
81-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 2250 1\001
82-
4 2 0 50 0 16 11 0.0000 4 105 105 2100 2775 n\001
83-
4 0 0 50 0 16 11 0.0000 4 135 105 2625 2775 0\001
84-
4 2 0 50 0 16 11 0.0000 4 135 660 1650 1725 factorial\001
85-
4 2 0 50 0 16 11 0.0000 4 135 660 1650 2250 factorial\001
86-
4 2 0 50 0 16 11 0.0000 4 135 660 1650 2775 factorial\001
87-
4 0 0 50 0 16 11 0.0000 4 135 105 6000 2550 1\001
88-
4 0 0 50 0 16 11 0.0000 4 135 105 6000 2025 1\001
89-
4 0 0 50 0 16 11 0.0000 4 135 105 6000 1500 2\001
90-
4 0 0 50 0 16 11 0.0000 4 135 105 6000 975 6\001
91-
4 0 0 50 0 16 11 0.0000 4 135 105 5475 2250 1\001
92-
4 2 0 50 0 16 11 0.0000 4 135 450 4950 2250 result\001
93-
4 0 0 50 0 16 11 0.0000 4 135 105 5475 1725 2\001
94-
4 0 0 50 0 16 11 0.0000 4 135 105 5475 1200 6\001
95-
4 2 0 50 0 16 11 0.0000 4 135 450 4950 1200 result\001
96-
4 2 0 50 0 16 11 0.0000 4 135 450 4950 1725 result\001
76+
4 2 0 50 0 16 11 0.0000 4 135 720 1650 675 __main__\001
77+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 1200 factorial\001
78+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 1725 n\001
79+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 1725 2\001
80+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 2250 n\001
81+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 2250 1\001
82+
4 2 0 50 0 16 11 0.0000 4 90 90 2100 2775 n\001
83+
4 0 0 50 0 16 11 0.0000 4 135 90 2625 2775 0\001
84+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 1725 factorial\001
85+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 2250 factorial\001
86+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 2775 factorial\001
87+
4 0 0 50 0 16 11 0.0000 4 135 90 6000 2550 1\001
88+
4 0 0 50 0 16 11 0.0000 4 135 90 6000 2025 1\001
89+
4 0 0 50 0 16 11 0.0000 4 135 90 6000 1500 2\001
90+
4 0 0 50 0 16 11 0.0000 4 135 90 6000 975 6\001
91+
4 0 0 50 0 16 11 0.0000 4 135 90 5475 2250 1\001
92+
4 2 0 50 0 16 11 0.0000 4 135 540 4950 2250 result\001
93+
4 0 0 50 0 16 11 0.0000 4 135 90 5475 1725 2\001
94+
4 0 0 50 0 16 11 0.0000 4 135 90 5475 1200 6\001
95+
4 2 0 50 0 16 11 0.0000 4 135 540 4950 1200 result\001
96+
4 2 0 50 0 16 11 0.0000 4 135 540 4950 1725 result\001

book/figs/stack3.fig.bak

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#FIG 3.2 Produced by xfig version 3.2.5
1+
#FIG 3.2 Produced by xfig version 3.2.5b
22
Landscape
33
Center
44
Inches
@@ -73,7 +73,7 @@ Single
7373
2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
7474
0 0 1.00 60.00 120.00
7575
5025 1147 5400 1147
76-
4 2 0 50 0 16 11 0.0000 4 165 810 1650 675 __main__\001
76+
4 2 0 50 0 16 11 0.0000 4 135 810 1650 675 <module>\001
7777
4 2 0 50 0 16 11 0.0000 4 135 660 1650 1200 factorial\001
7878
4 2 0 50 0 16 11 0.0000 4 105 105 2100 1725 n\001
7979
4 0 0 50 0 16 11 0.0000 4 135 105 2625 1725 2\001

book/figs/stack3.pdf

-107 Bytes
Binary file not shown.

book/figs/stack5.eps

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)