├── 2.0 ├── Makefile ├── book.tex ├── figs │ ├── TurtleWorld.pdf │ ├── assign2.fig │ ├── assign2.pdf │ ├── banana.fig │ ├── banana.pdf │ ├── card1.fig │ ├── card1.pdf │ ├── class1.fig │ ├── class1.pdf │ ├── compile.fig │ ├── compile.pdf │ ├── dict1.fig │ ├── dict1.pdf │ ├── dict2.fig │ ├── dict2.pdf │ ├── fibonacci.fig │ ├── fibonacci.pdf │ ├── flower.test.pdf │ ├── flowers.pdf │ ├── interpret.fig │ ├── interpret.pdf │ ├── koch.pdf │ ├── list1.fig │ ├── list1.pdf │ ├── list2.fig │ ├── list2.pdf │ ├── list3.fig │ ├── list3.pdf │ ├── liststate.fig │ ├── liststate.pdf │ ├── listsum1.pdf │ ├── listsum2.pdf │ ├── lumpydemo1.pdf │ ├── lumpydemo2.pdf │ ├── lumpydemo3.pdf │ ├── lumpydemo4.pdf │ ├── lumpydemo5.pdf │ ├── lumpydemo6.pdf │ ├── lumpydemo7.pdf │ ├── lumpydemo8.pdf │ ├── pies.pdf │ ├── point.fig │ ├── point.pdf │ ├── rectangle.fig │ ├── rectangle.pdf │ ├── rectangle2.fig │ ├── rectangle2.pdf │ ├── screenshot.pdf │ ├── stack.fig │ ├── stack.pdf │ ├── stack2.fig │ ├── stack2.pdf │ ├── stack3.fig │ ├── stack3.pdf │ ├── stack4.fig │ ├── stack4.pdf │ ├── stack5.fig │ ├── stack5.pdf │ ├── state.fig │ ├── state.pdf │ ├── state2.fig │ ├── state2.pdf │ ├── state3.fig │ ├── state3.pdf │ ├── state4.fig │ ├── state4.pdf │ ├── state5.fig │ ├── state5.pdf │ ├── time.fig │ ├── time.pdf │ ├── towers.fig │ ├── towers.pdf │ ├── tuple1.fig │ └── tuple1.pdf ├── htmlonly ├── latexonly └── thinkpython_italian.pdf ├── Makefile ├── README.md ├── back.png ├── book.tex ├── figs ├── assign2.eps ├── assign2.fig ├── assign2.pdf ├── banana.eps ├── banana.fig ├── banana.pdf ├── card1.eps ├── card1.fig ├── card1.pdf ├── class1.eps ├── class1.fig ├── class1.pdf ├── dict1.eps ├── dict1.fig ├── dict1.pdf ├── dict2.eps ├── dict2.fig ├── dict2.pdf ├── fibonacci.eps ├── fibonacci.fig ├── fibonacci.pdf ├── flower.test.pdf ├── flowers.eps ├── flowers.pdf ├── koch.eps ├── koch.pdf ├── list1.eps ├── list1.fig ├── list1.pdf ├── list2.eps ├── list2.fig ├── list2.pdf ├── list3.eps ├── list3.fig ├── list3.pdf ├── liststate.eps ├── liststate.fig ├── liststate.pdf ├── listsum1.eps ├── listsum1.pdf ├── listsum2.eps ├── listsum2.pdf ├── loop.py ├── loop.py~ ├── pies.eps ├── pies.pdf ├── point.eps ├── point.fig ├── point.pdf ├── rectangle.eps ├── rectangle.fig ├── rectangle.pdf ├── rectangle2.eps ├── rectangle2.fig ├── rectangle2.pdf ├── stack.eps ├── stack.fig ├── stack.pdf ├── stack2.eps ├── stack2.fig ├── stack2.pdf ├── stack3.eps ├── stack3.fig ├── stack3.pdf ├── stack5.eps ├── stack5.fig ├── stack5.pdf ├── state.eps ├── state.fig ├── state.pdf ├── state2.eps ├── state2.fig ├── state2.pdf ├── state3.eps ├── state3.fig ├── state3.pdf ├── state4.eps ├── state4.fig ├── state4.pdf ├── state5.eps ├── state5.fig ├── state5.pdf ├── time.eps ├── time.fig ├── time.pdf ├── towers.eps ├── towers.fig ├── towers.pdf ├── tuple1.eps ├── tuple1.fig └── tuple1.pdf ├── footer.html ├── header.html ├── hevea.sty ├── htmlonly ├── latexonly ├── localdef.py ├── next.png ├── thinkpython_italian.pdf └── up.png /2.0/Makefile: -------------------------------------------------------------------------------- 1 | LATEX = latex 2 | 3 | DVIPS = dvips 4 | 5 | PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \ 6 | -dCompressPages=true -dUseFlateCompression=true \ 7 | -dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100 8 | 9 | 10 | %.dvi: %.tex 11 | $(LATEX) $< 12 | 13 | %.ps: %.dvi 14 | $(DVIPS) -o $@ $< 15 | 16 | %.pdf: %.ps 17 | ps2pdf $(PDFFLAGS) $< 18 | 19 | all: book.tex 20 | makeindex book 21 | pdflatex book 22 | mv book.pdf thinkpython.pdf 23 | evince thinkpython.pdf 24 | 25 | hevea: book.tex header.html footer.html 26 | # replace the pdfs with eps 27 | sed s/.pdf/.eps/g book.tex > thinkpython.tex 28 | latex thinkpython 29 | rm -rf html 30 | mkdir html 31 | hevea -fix -O -e latexonly htmlonly thinkpython 32 | # the following greps are a kludge to prevent imagen from seeing 33 | # the definitions in latexonly, and to avoid headers on the images 34 | grep -v latexonly thinkpython.image.tex > a; mv a thinkpython.image.tex 35 | grep -v fancyhdr thinkpython.image.tex > a; mv a thinkpython.image.tex 36 | imagen -png thinkpython 37 | hacha thinkpython.html 38 | cp up.png next.png back.png html 39 | mv index.html thinkpython.css thinkpython*.html thinkpython*.png *motif.gif html 40 | 41 | DEST = /home/downey/public_html/greent/thinkpython 42 | 43 | epub: 44 | cd html; ebook-convert index.html thinkpython.epub 45 | 46 | distrib: 47 | rm -rf dist 48 | mkdir dist dist/tex dist/tex/figs 49 | rsync -a thinkpython.pdf html dist 50 | rsync -a Makefile book.tex latexonly htmlonly dist/tex 51 | rsync -a figs/*.fig figs/*.pdf dist/tex/figs 52 | cd dist; zip -r thinkpython.tex.zip tex 53 | cd dist; zip -r thinkpython.html.zip html 54 | rsync -a dist/* $(DEST) 55 | chmod -R o+r $(DEST)/* 56 | cd $(DEST)/..; sh back 57 | 58 | plastex: 59 | # Before running plastex, we need the current directory in PYTHONPATH 60 | # export PYTHONPATH=$PYTHONPATH:. 61 | python Filist.py book.tex > book.plastex 62 | rm -rf /home/downey/thinkpython/trunk/book 63 | plastex --renderer=DocBook --theme=book --image-resolution=300 --filename=book.xml book.plastex 64 | rm -rf /home/downey/thinkpython/trunk/book/.svn 65 | 66 | plastest: 67 | # Before running plastex, we need the current directory in PYTHONPATH 68 | # export PYTHONPATH=$PYTHONPATH:. 69 | python Filist.py test.tex > test.plastex 70 | rm -rf /home/downey/thinkpython/trunk/test 71 | plastex --renderer=DocBook --theme=test --filename=test.xml test.plastex 72 | rm -rf /home/downey/thinkpython/trunk/test/.svn 73 | 74 | xxe: 75 | ~/Downloads/xxe-perso-4_8_0/bin/xxe book/book.xml 76 | 77 | OREILLY = /home/downey/oreilly/thinkpython 78 | 79 | oreilly: 80 | rsync -a book.tex $(OREILLY) 81 | rsync -a book/ $(OREILLY) 82 | rsync -a figs/* $(OREILLY)/figs 83 | rsync -a thinkpython.pdf $(OREILLY)/pdf 84 | 85 | clean: 86 | rm -f *~ *.aux *.log *.dvi *.idx *.ilg *.ind *.toc 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /2.0/figs/TurtleWorld.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/TurtleWorld.pdf -------------------------------------------------------------------------------- /2.0/figs/assign2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 2325 1080 3300 1530 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 2760 1339 3135 1467 14 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 15 | 2766 1271 3141 1174 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2 17 | 3075 1080 3300 1230 18 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2 19 | 3300 1080 3075 1230 20 | 4 0 0 50 0 16 11 0.0000 4 120 90 3150 1530 7\001 21 | 4 0 0 50 0 16 11 0.0000 4 120 90 3150 1230 5\001 22 | 4 2 0 50 0 16 11 0.0000 4 120 375 2730 1340 bruce\001 23 | -6 24 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 25 | 2175 975 3450 975 3450 1650 2175 1650 2175 975 26 | -------------------------------------------------------------------------------- /2.0/figs/assign2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/assign2.pdf -------------------------------------------------------------------------------- /2.0/figs/banana.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 1485 990 2565 1650 11 | 4 2 0 50 0 16 11 0.0000 4 135 540 2025 1125 frutto\001 12 | 4 0 0 50 0 16 11 0.0000 4 135 540 2025 1650 indice\001 13 | -6 14 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 15 | 2700 825 2700 1500 16 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 17 | 3000 825 3000 1500 18 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 19 | 3300 825 3300 1500 20 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 21 | 3600 825 3600 1500 22 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 23 | 3900 825 3900 1500 24 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 25 | 4200 825 4200 1500 26 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 27 | 4500 825 4500 1500 28 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 29 | 0 0 1.00 60.00 120.00 30 | 2100 1080 2475 1080 31 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 32 | 1455 825 4800 825 4800 1350 1455 1350 1455 825 33 | 4 0 0 50 0 16 22 0.0000 4 135 90 2775 1200 b\001 34 | 4 0 0 50 0 16 22 0.0000 4 90 90 3075 1200 a\001 35 | 4 0 0 50 0 16 22 0.0000 4 90 90 3375 1200 n\001 36 | 4 0 0 50 0 16 22 0.0000 4 90 90 3975 1200 n\001 37 | 4 0 0 50 0 16 22 0.0000 4 90 90 3675 1200 a\001 38 | 4 0 0 50 0 16 22 0.0000 4 90 90 4275 1200 a\001 39 | 4 0 0 50 0 16 22 0.0000 4 45 90 4575 1200 '\001 40 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 1650 0\001 41 | 4 0 0 50 0 16 11 0.0000 4 135 90 2925 1650 1\001 42 | 4 0 0 50 0 16 11 0.0000 4 135 90 3225 1650 2\001 43 | 4 0 0 50 0 16 11 0.0000 4 135 90 3525 1650 3\001 44 | 4 0 0 50 0 16 11 0.0000 4 135 90 3825 1650 4\001 45 | 4 0 0 50 0 16 11 0.0000 4 135 90 4125 1650 5\001 46 | 4 0 0 50 0 16 11 0.0000 4 135 90 4425 1650 6\001 47 | 4 0 0 50 0 16 22 0.0000 4 45 90 2550 1200 '\001 48 | -------------------------------------------------------------------------------- /2.0/figs/banana.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/banana.pdf -------------------------------------------------------------------------------- /2.0/figs/card1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 825 1200 1200 1200 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2625 1205 3150 1198 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2625 1953 3150 1946 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 900 2850 1275 2850 22 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 23 | 1200 1050 2850 1050 2850 2175 1200 2175 1200 1050 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 1950 3150 2325 3150 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 1950 2925 2325 2925 30 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 31 | 1275 2700 2700 2700 2700 3375 1275 3375 1275 2700 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 3150 1050 3525 1050 3525 1425 3150 1425 3150 1050 34 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 35 | 3150 1800 3525 1800 3525 2175 3150 2175 3150 1800 36 | 4 0 0 50 0 16 11 0.0000 4 135 360 3150 975 list\001 37 | 4 0 0 50 0 16 11 0.0000 4 135 360 3150 1725 list\001 38 | 4 2 0 50 0 16 11 0.0000 4 150 990 2550 2025 nomi_valori\001 39 | 4 2 0 50 0 16 11 0.0000 4 135 450 750 1275 Carta\001 40 | 4 2 0 50 0 16 11 0.0000 4 135 540 825 2925 carta1\001 41 | 4 0 0 50 0 16 11 0.0000 4 135 450 1275 2625 Carta\001 42 | 4 0 0 50 0 16 11 0.0000 4 150 360 1200 975 type\001 43 | 4 2 0 50 0 16 11 0.0000 4 135 810 2550 1275 nomi_semi\001 44 | 4 0 0 50 0 16 11 0.0000 4 135 180 2475 3225 11\001 45 | 4 0 0 50 0 16 11 0.0000 4 135 90 2475 2925 1\001 46 | 4 2 0 50 0 16 11 0.0000 4 90 360 1875 2925 seme\001 47 | 4 2 0 50 0 16 11 0.0000 4 135 540 1875 3225 valore\001 48 | -------------------------------------------------------------------------------- /2.0/figs/card1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/card1.pdf -------------------------------------------------------------------------------- /2.0/figs/class1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 11 | 2625 1050 3525 1050 3525 1500 2625 1500 2625 1050 12 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 13 | 2625 2025 3525 2025 3525 2475 2625 2475 2625 2025 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 1 0 1.00 150.00 120.00 16 | 3075 2025 3075 1500 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 120.00 120.00 19 | 3525 1275 4200 1275 20 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 21 | 4200 1050 5100 1050 5100 1500 4200 1500 4200 1050 22 | 4 0 0 50 0 16 11 0.0000 4 135 360 2850 2325 Mano\001 23 | 4 0 0 50 0 16 11 0.0000 4 135 450 2850 1350 Mazzo\001 24 | 4 2 0 50 0 16 14 0.0000 4 75 90 4125 1275 *\001 25 | 4 2 0 50 0 16 11 0.0000 4 135 450 4800 1350 Carta\001 26 | -------------------------------------------------------------------------------- /2.0/figs/class1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/class1.pdf -------------------------------------------------------------------------------- /2.0/figs/compile.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 90.00 180.00 12 | 3525 750 3854 750 13 | 2 1 0 2 0 7 63 0 -1 0.000 0 0 -1 0 0 4 14 | 3936 655 3840 548 3840 915 3936 813 15 | 2 1 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 4 16 | 5002 1248 5100 1350 5100 984 5002 1089 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 90.00 180.00 19 | 5100 1125 5429 1125 20 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 21 | 3936 548 5010 548 5010 1342 3936 1342 3936 548 22 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 23 | 2700 525 3525 525 3525 1350 2700 1350 2700 525 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 90.00 180.00 26 | 892 742 1221 742 27 | 2 1 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 6 28 | 67 442 742 442 892 592 892 1342 67 1342 67 442 29 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 3 30 | 742 442 742 592 892 592 31 | 2 1 0 2 0 7 63 0 -1 0.000 0 0 -1 0 0 4 32 | 1304 647 1207 540 1207 907 1304 805 33 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 34 | 0 0 1.00 90.00 180.00 35 | 2377 1117 2706 1117 36 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 37 | 5694 1296 6151 1296 6151 1356 5694 1356 5694 1296 38 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 39 | 5598 1357 6259 1357 6259 1412 5598 1412 5598 1357 40 | 2 2 0 2 0 7 50 0 20 0.000 0 0 -1 0 0 5 41 | 5413 463 6437 463 6437 1296 5413 1296 5413 463 42 | 2 2 0 1 0 7 50 0 20 0.000 0 0 -1 0 0 5 43 | 5467 519 6381 519 6381 1237 5467 1237 5467 519 44 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 45 | 1304 540 2298 540 2298 1327 1304 1327 1304 540 46 | 2 1 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 4 47 | 2298 1225 2372 1320 2372 960 2298 1066 48 | 4 0 0 50 0 16 8 0.0000 4 135 630 2775 1125 OGGETTO\001 49 | 4 0 0 50 0 16 8 0.0000 4 135 540 2775 900 CODICE\001 50 | 4 0 0 50 0 16 8 0.0000 4 135 810 4005 975 ESECUTORE\001 51 | 4 0 0 50 0 16 8 0.0000 4 135 720 142 1117 SORGENTE\001 52 | 4 0 0 50 0 16 8 0.0000 4 135 540 142 892 CODICE\001 53 | 4 0 0 50 0 16 8 0.0000 4 135 540 5588 953 OUTPUT\001 54 | 4 0 0 50 0 16 8 0.0000 4 135 990 1342 967 COMPILATORE\001 55 | -------------------------------------------------------------------------------- /2.0/figs/compile.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/compile.pdf -------------------------------------------------------------------------------- /2.0/figs/dict1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 4800 1575 6150 3075 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 5250 2272 5625 2272 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 5250 1972 5625 1972 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 5250 2572 5625 2572 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 5250 2872 5625 2872 23 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 24 | 4800 1800 6150 1800 6150 3075 4800 3075 4800 1800 25 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2025 0\001 26 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2325 1\001 27 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 2025 'a'\001 28 | 4 0 0 50 0 16 11 0.0000 4 165 270 5700 2325 'p'\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 360 4800 1725 list\001 30 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2625 2\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 2625 't'\001 32 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 2925 'o'\001 33 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2925 3\001 34 | -6 35 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 36 | 4800 3450 6150 3450 6150 3825 4800 3825 4800 3450 37 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 38 | 0 0 1.00 60.00 120.00 39 | 5250 3600 5625 3600 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 4203 1953 4800 1946 43 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 44 | 3675 1800 4350 1800 4350 3825 3675 3825 3675 1800 45 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 46 | 0 0 1.00 60.00 120.00 47 | 4203 3600 4800 3593 48 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 49 | 0 0 1.00 60.00 120.00 50 | 1575 2197 1950 2197 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 1575 1897 1950 1897 54 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 55 | 0 0 1.00 60.00 120.00 56 | 1575 2797 1950 2797 57 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 58 | 0 0 1.00 60.00 120.00 59 | 1575 3097 1950 3097 60 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 61 | 0 0 1.00 60.00 120.00 62 | 1575 2497 1950 2497 63 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 64 | 1125 1725 2400 1725 2400 3300 1125 3300 1125 1725 65 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 66 | 0 0 1.00 60.00 120.00 67 | 3300 1950 3675 1950 68 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 69 | 0 0 1.00 60.00 120.00 70 | 750 1950 1125 1950 71 | 4 0 0 50 0 16 11 0.0000 4 120 630 2700 1950 inverso\001 72 | 4 0 0 50 0 16 11 0.0000 4 135 360 3675 1725 dict\001 73 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 3675 0\001 74 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 3675 'r'\001 75 | 4 2 0 50 0 16 11 0.0000 4 135 90 4050 2025 1\001 76 | 4 0 0 50 0 16 11 0.0000 4 135 360 4800 3375 list\001 77 | 4 2 0 50 0 16 11 0.0000 4 135 90 4050 3675 2\001 78 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 1950 'a'\001 79 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 1950 1\001 80 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2250 1\001 81 | 4 0 0 50 0 16 11 0.0000 4 135 360 1125 1650 dict\001 82 | 4 2 0 50 0 16 11 0.0000 4 165 270 1500 2250 'p'\001 83 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2850 1\001 84 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 3150 'o'\001 85 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 3150 1\001 86 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 2550 'r'\001 87 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2550 2\001 88 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 2850 't'\001 89 | 4 0 0 50 0 16 11 0.0000 4 120 360 432 1950 isto\001 90 | -------------------------------------------------------------------------------- /2.0/figs/dict1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/dict1.pdf -------------------------------------------------------------------------------- /2.0/figs/dict2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 3300 1822 3675 1822 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 3300 1522 3675 1522 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 3300 2422 3675 2422 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 3300 2722 3675 2722 22 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 23 | 0 0 1.00 60.00 120.00 24 | 3300 2122 3675 2122 25 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 26 | 0 0 1.00 60.00 120.00 27 | 3300 3000 3675 3000 28 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 29 | 1275 1350 5100 1350 5100 3225 1275 3225 1275 1350 30 | 4 2 0 50 0 16 11 0.0000 4 150 1125 3225 1575 ('Cleese', 'John')\001 31 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 1575 '08700 100 222'\001 32 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 1875 '08700 100 222'\001 33 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 2175 '08700 100 222'\001 34 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 2475 '08700 100 222'\001 35 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 2775 '08700 100 222'\001 36 | 4 2 0 50 0 16 11 0.0000 4 150 1530 3225 1875 ('Chapman', 'Graham')\001 37 | 4 2 0 50 0 16 11 0.0000 4 150 840 3225 2175 ('Idle', 'Eric')\001 38 | 4 2 0 50 0 16 11 0.0000 4 150 1080 3225 2775 ('Jones', 'Terry')\001 39 | 4 2 0 50 0 16 11 0.0000 4 150 1110 3225 2475 ('Gilliam', 'Terry')\001 40 | 4 2 0 50 0 16 11 0.0000 4 150 1170 3225 3075 ('Palin', 'Michael')\001 41 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 3075 '08700 100 222'\001 42 | 4 0 0 50 0 16 11 0.0000 4 120 255 1275 1275 dict\001 43 | -------------------------------------------------------------------------------- /2.0/figs/dict2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/dict2.pdf -------------------------------------------------------------------------------- /2.0/figs/fibonacci.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 3450 450 4350 1125 11 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 12 | 3450 450 4350 450 4350 1125 3450 1125 3450 450 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 3705 899 4080 899 16 | 4 0 0 50 0 16 11 0.0000 4 120 615 3555 705 fibonacci\001 17 | 4 2 0 50 0 16 11 0.0000 4 90 90 3630 952 n\001 18 | 4 0 0 50 0 16 11 0.0000 4 120 90 4155 952 4\001 19 | -6 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 3450 1125 3150 1425 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 2400 2100 2100 2400 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 1800 3075 1500 3375 29 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 30 | 0 0 1.00 60.00 120.00 31 | 4800 2100 4500 2400 32 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 33 | 0 0 1.00 60.00 120.00 34 | 4350 1125 4650 1425 35 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 36 | 0 0 1.00 60.00 120.00 37 | 3000 2100 3300 2400 38 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 39 | 0 0 1.00 60.00 120.00 40 | 2400 3075 2700 3375 41 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 42 | 0 0 1.00 60.00 120.00 43 | 5400 2100 5700 2400 44 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 45 | 2250 1425 3150 1425 3150 2100 2250 2100 2250 1425 46 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 47 | 0 0 1.00 60.00 120.00 48 | 2505 1874 2880 1874 49 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 50 | 4650 1425 5550 1425 5550 2100 4650 2100 4650 1425 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 4905 1874 5280 1874 54 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 55 | 5250 2400 6150 2400 6150 3075 5250 3075 5250 2400 56 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 57 | 0 0 1.00 60.00 120.00 58 | 5505 2849 5880 2849 59 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 60 | 4050 2400 4950 2400 4950 3075 4050 3075 4050 2400 61 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 62 | 0 0 1.00 60.00 120.00 63 | 4305 2849 4680 2849 64 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 65 | 2850 2400 3750 2400 3750 3075 2850 3075 2850 2400 66 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 67 | 0 0 1.00 60.00 120.00 68 | 3105 2849 3480 2849 69 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 70 | 1650 2400 2550 2400 2550 3075 1650 3075 1650 2400 71 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 72 | 0 0 1.00 60.00 120.00 73 | 1905 2849 2280 2849 74 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 75 | 2250 3375 3150 3375 3150 4050 2250 4050 2250 3375 76 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 77 | 0 0 1.00 60.00 120.00 78 | 2505 3824 2880 3824 79 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 80 | 1050 3375 1950 3375 1950 4050 1050 4050 1050 3375 81 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 82 | 0 0 1.00 60.00 120.00 83 | 1305 3824 1680 3824 84 | 4 0 0 50 0 16 11 0.0000 4 120 615 2355 1680 fibonacci\001 85 | 4 2 0 50 0 16 11 0.0000 4 90 90 2430 1927 n\001 86 | 4 0 0 50 0 16 11 0.0000 4 120 90 2955 1927 3\001 87 | 4 0 0 50 0 16 11 0.0000 4 120 615 4755 1680 fibonacci\001 88 | 4 2 0 50 0 16 11 0.0000 4 90 90 4830 1927 n\001 89 | 4 0 0 50 0 16 11 0.0000 4 120 90 5355 1927 2\001 90 | 4 0 0 50 0 16 11 0.0000 4 120 615 5355 2655 fibonacci\001 91 | 4 2 0 50 0 16 11 0.0000 4 90 90 5430 2902 n\001 92 | 4 0 0 50 0 16 11 0.0000 4 120 90 5955 2902 0\001 93 | 4 0 0 50 0 16 11 0.0000 4 120 615 4155 2655 fibonacci\001 94 | 4 2 0 50 0 16 11 0.0000 4 90 90 4230 2902 n\001 95 | 4 0 0 50 0 16 11 0.0000 4 120 90 4755 2902 1\001 96 | 4 0 0 50 0 16 11 0.0000 4 120 615 2955 2655 fibonacci\001 97 | 4 2 0 50 0 16 11 0.0000 4 90 90 3030 2902 n\001 98 | 4 0 0 50 0 16 11 0.0000 4 120 90 3555 2902 1\001 99 | 4 0 0 50 0 16 11 0.0000 4 120 615 1755 2655 fibonacci\001 100 | 4 2 0 50 0 16 11 0.0000 4 90 90 1830 2902 n\001 101 | 4 0 0 50 0 16 11 0.0000 4 120 90 2355 2902 2\001 102 | 4 0 0 50 0 16 11 0.0000 4 120 615 2355 3630 fibonacci\001 103 | 4 2 0 50 0 16 11 0.0000 4 90 90 2430 3877 n\001 104 | 4 0 0 50 0 16 11 0.0000 4 120 90 2955 3877 0\001 105 | 4 0 0 50 0 16 11 0.0000 4 120 615 1155 3630 fibonacci\001 106 | 4 2 0 50 0 16 11 0.0000 4 90 90 1230 3877 n\001 107 | 4 0 0 50 0 16 11 0.0000 4 120 90 1755 3877 1\001 108 | -------------------------------------------------------------------------------- /2.0/figs/fibonacci.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/fibonacci.pdf -------------------------------------------------------------------------------- /2.0/figs/flower.test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/flower.test.pdf -------------------------------------------------------------------------------- /2.0/figs/flowers.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/flowers.pdf -------------------------------------------------------------------------------- /2.0/figs/interpret.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 90.00 180.00 12 | 3225 750 3600 750 13 | 2 1 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 6 14 | 2325 1350 2325 450 3000 450 3150 600 3150 1350 2325 1350 15 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 3 16 | 3000 450 3000 600 3150 600 17 | 2 1 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 4 18 | 3748 640 3652 533 3652 900 3748 798 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 90.00 180.00 21 | 5197 1117 5572 1117 22 | 2 1 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 4 23 | 5039 1173 5137 1275 5137 909 5039 1014 24 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 25 | 3750 525 5047 525 5047 1290 3750 1290 3750 525 26 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 27 | 5919 1296 6376 1296 6376 1356 5919 1356 5919 1296 28 | 2 2 0 2 0 7 50 0 -1 0.000 0 0 -1 0 0 5 29 | 5823 1357 6484 1357 6484 1412 5823 1412 5823 1357 30 | 2 2 0 2 0 7 50 0 20 0.000 0 0 -1 0 0 5 31 | 5638 463 6662 463 6662 1296 5638 1296 5638 463 32 | 2 2 0 1 0 7 50 0 20 0.000 0 0 -1 0 0 5 33 | 5692 519 6606 519 6606 1237 5692 1237 5692 519 34 | 4 0 0 50 0 16 8 0.0000 4 135 540 2400 900 CODICE\001 35 | 4 0 0 50 0 16 8 0.0000 4 135 720 2400 1125 SORGENTE\001 36 | 4 0 0 50 0 16 9 0.0000 4 135 900 3825 975 INTERPRETE\001 37 | 4 0 0 50 0 16 9 0.0000 4 135 540 5813 953 OUTPUT\001 38 | -------------------------------------------------------------------------------- /2.0/figs/interpret.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/interpret.pdf -------------------------------------------------------------------------------- /2.0/figs/koch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/koch.pdf -------------------------------------------------------------------------------- /2.0/figs/list1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5-alpha5 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 4125 1447 4500 1350 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 4125 1147 4500 1275 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 3825 975 5400 975 5400 1650 3825 1650 3825 975 18 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 19 | 0 0 1.00 60.00 120.00 20 | 2100 1447 2475 1447 21 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 22 | 0 0 1.00 60.00 120.00 23 | 2100 1147 2475 1147 24 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 25 | 1800 975 3375 975 3375 1650 1800 1650 1800 975 26 | 4 2 0 50 0 16 11 0.0000 4 105 105 4050 1200 a\001 27 | 4 2 0 50 0 16 11 0.0000 4 135 105 4050 1500 b\001 28 | 4 0 0 50 0 16 11 0.0000 4 135 720 4575 1350 'banana'\001 29 | 4 2 0 50 0 16 11 0.0000 4 105 105 2025 1200 a\001 30 | 4 2 0 50 0 16 11 0.0000 4 135 105 2025 1500 b\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 720 2550 1200 'banana'\001 32 | 4 0 0 50 0 16 11 0.0000 4 135 720 2550 1500 'banana'\001 33 | -------------------------------------------------------------------------------- /2.0/figs/list1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/list1.pdf -------------------------------------------------------------------------------- /2.0/figs/list2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1147 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1800 975 3375 975 3375 1650 1800 1650 1800 975 18 | 4 2 0 50 0 16 11 0.0000 4 90 75 2025 1200 a\001 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 b\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 630 2550 1200 [ 1, 2, 3 ]\001 21 | 4 0 0 50 0 16 11 0.0000 4 150 630 2550 1500 [ 1, 2, 3 ]\001 22 | -------------------------------------------------------------------------------- /2.0/figs/list2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/list2.pdf -------------------------------------------------------------------------------- /2.0/figs/list3.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1350 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1275 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1800 975 3375 975 3375 1650 1800 1650 1800 975 18 | 4 2 0 50 0 16 11 0.0000 4 90 75 2025 1200 a\001 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 b\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 630 2550 1350 [ 1, 2, 3 ]\001 21 | -------------------------------------------------------------------------------- /2.0/figs/list3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/list3.pdf -------------------------------------------------------------------------------- /2.0/figs/liststate.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 2497 2475 2497 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 1200 2475 1575 2475 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2100 2850 2475 3075 19 | 2 1 2 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2 20 | 2100 2797 2475 2797 21 | 2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 22 | 2550 2700 2850 2850 23 | 2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 24 | 2850 2700 2550 2850 25 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 26 | 1650 2325 3225 2325 3225 3300 1650 3300 1650 2325 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 1200 3825 1575 3825 30 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 31 | 1650 3675 1950 3675 1950 3975 1650 3975 1650 3675 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 1650 975 3675 975 3675 1950 1650 1950 1650 975 34 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 35 | 0 0 1.00 60.00 120.00 36 | 2100 1447 2475 1447 37 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 38 | 0 0 1.00 60.00 120.00 39 | 2100 1747 2475 1747 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 2100 1147 2475 1147 43 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 44 | 0 0 1.00 60.00 120.00 45 | 1200 1125 1575 1125 46 | 2 2 0 1 7 7 50 -1 -1 0.000 0 0 -1 0 0 5 47 | 225 675 3825 675 3825 4050 225 4050 225 675 48 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2550 0\001 49 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2850 1\001 50 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 2250 list\001 51 | 4 2 0 50 0 16 11 0.0000 4 120 540 1125 2550 numeri\001 52 | 4 0 0 50 0 16 11 0.0000 4 135 180 2550 2550 17\001 53 | 4 0 0 50 0 16 11 0.0000 4 135 270 2550 2850 123\001 54 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 3150 5\001 55 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 3600 list\001 56 | 4 2 0 50 0 16 11 0.0000 4 120 450 1125 3900 vuota\001 57 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1200 0\001 58 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1500 1\001 59 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1800 2\001 60 | 4 0 0 50 0 16 11 0.0000 4 135 810 2550 1200 'Cheddar'\001 61 | 4 0 0 50 0 16 11 0.0000 4 135 540 2550 1500 'Edam'\001 62 | 4 0 0 50 0 16 11 0.0000 4 135 630 2550 1800 'Gouda'\001 63 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 900 list\001 64 | 4 2 0 50 0 16 11 0.0000 4 165 720 1125 1200 formaggi\001 65 | -------------------------------------------------------------------------------- /2.0/figs/liststate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/liststate.pdf -------------------------------------------------------------------------------- /2.0/figs/listsum1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/listsum1.pdf -------------------------------------------------------------------------------- /2.0/figs/listsum2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/listsum2.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo1.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo2.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo3.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo4.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo5.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo6.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo7.pdf -------------------------------------------------------------------------------- /2.0/figs/lumpydemo8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/lumpydemo8.pdf -------------------------------------------------------------------------------- /2.0/figs/pies.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/pies.pdf -------------------------------------------------------------------------------- /2.0/figs/point.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1147 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 1425 1117 1800 1117 19 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 20 | 1800 975 2925 975 2925 1650 1800 1650 1800 975 21 | 4 2 0 50 0 16 11 0.0000 4 90 90 2025 1200 x\001 22 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 y\001 23 | 4 0 0 50 0 16 11 0.0000 4 150 270 2550 1200 3.0\001 24 | 4 0 0 50 0 16 11 0.0000 4 150 270 2550 1500 4.0\001 25 | 4 2 0 50 0 16 11 0.0000 4 90 450 1350 1170 nuovo\001 26 | 4 0 0 50 0 16 11 0.0000 4 135 450 1800 900 Punto\001 27 | -------------------------------------------------------------------------------- /2.0/figs/point.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/point.pdf -------------------------------------------------------------------------------- /2.0/figs/rectangle.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 3750 1350 4725 1950 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 3975 1822 4350 1822 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 3975 1522 4350 1522 17 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 18 | 3750 1350 4725 1350 4725 1950 3750 1950 3750 1350 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 3900 1875 y\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 270 4425 1575 0.0\001 21 | 4 2 0 50 0 16 11 0.0000 4 90 90 3900 1575 x\001 22 | 4 0 0 50 0 16 11 0.0000 4 150 270 4425 1875 0.0\001 23 | -6 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 1028 1140 1413 1140 27 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 28 | 1425 975 3480 975 3480 1950 1425 1950 1425 975 29 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 30 | 0 0 1.00 60.00 120.00 31 | 2475 1125 2850 1125 32 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 33 | 0 0 1.00 60.00 120.00 34 | 2475 1425 2850 1425 35 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 36 | 0 0 1.00 60.00 120.00 37 | 2475 1726 3745 1724 38 | 4 0 0 50 0 16 11 0.0000 4 165 900 1500 900 Rettangolo\001 39 | 4 2 0 50 0 16 11 0.0000 4 135 270 975 1200 box\001 40 | 4 0 0 50 0 16 11 0.0000 4 135 450 3750 1275 Punto\001 41 | 4 0 0 50 0 16 11 0.0000 4 150 450 2925 1500 200.0\001 42 | 4 0 0 50 0 16 11 0.0000 4 150 450 2925 1200 100.0\001 43 | 4 2 0 50 0 16 11 0.0000 4 135 630 2400 1500 altezza\001 44 | 4 2 0 50 0 16 11 0.0000 4 165 540 2400 1800 angolo\001 45 | 4 2 0 50 0 16 11 0.0000 4 165 810 2400 1200 larghezza\001 46 | -------------------------------------------------------------------------------- /2.0/figs/rectangle.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/rectangle.pdf -------------------------------------------------------------------------------- /2.0/figs/rectangle2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 3300 1350 4275 1950 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 3525 1822 3900 1822 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 3525 1522 3900 1522 17 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 18 | 3300 1350 4275 1350 4275 1950 3300 1950 3300 1350 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 3450 1875 y\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 270 3975 1575 0.0\001 21 | 4 2 0 50 0 16 11 0.0000 4 90 90 3450 1575 x\001 22 | 4 0 0 50 0 16 11 0.0000 4 150 270 3975 1875 0.0\001 23 | -6 24 | 6 2100 1050 2475 1500 25 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 26 | 0 0 1.00 60.00 120.00 27 | 2100 1447 2475 1447 28 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 29 | 0 0 1.00 60.00 120.00 30 | 2100 1147 2475 1147 31 | -6 32 | 6 5025 1050 5400 1500 33 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 34 | 0 0 1.00 60.00 120.00 35 | 5400 1447 5025 1447 36 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 37 | 0 0 1.00 60.00 120.00 38 | 5400 1147 5025 1147 39 | -6 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 2100 1747 3295 1745 43 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 44 | 0 0 1.00 60.00 120.00 45 | 5467 1757 4272 1755 46 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 47 | 0 0 1.00 60.00 120.00 48 | 705 1125 1065 1125 49 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 50 | 1125 975 3075 975 3075 1950 1125 1950 1125 975 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 6810 1200 6465 1200 54 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 55 | 4500 975 6450 975 6450 1950 4500 1950 4500 975 56 | 4 2 0 50 0 16 11 0.0000 4 165 810 2025 1200 larghezza\001 57 | 4 2 0 50 0 16 11 0.0000 4 135 630 2025 1500 altezza\001 58 | 4 0 0 50 0 16 11 0.0000 4 150 450 2550 1200 100.0\001 59 | 4 2 0 50 0 16 11 0.0000 4 165 540 2025 1800 angolo\001 60 | 4 0 0 50 0 16 11 0.0000 4 150 450 2550 1500 200.0\001 61 | 4 0 0 50 0 16 11 0.0000 4 150 450 4575 1200 100.0\001 62 | 4 0 0 50 0 16 11 0.0000 4 150 450 4575 1500 200.0\001 63 | 4 0 0 50 0 16 11 0.0000 4 165 810 5475 1200 larghezza\001 64 | 4 0 0 50 0 16 11 0.0000 4 165 540 5475 1800 angolo\001 65 | 4 2 0 50 0 16 11 0.0000 4 135 270 675 1200 box\001 66 | 4 0 0 50 0 16 11 0.0000 4 135 630 5475 1500 altezza\001 67 | 4 0 0 50 0 16 11 0.0000 4 135 360 6825 1275 box2\001 68 | -------------------------------------------------------------------------------- /2.0/figs/rectangle2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/rectangle2.pdf -------------------------------------------------------------------------------- /2.0/figs/screenshot.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/screenshot.pdf -------------------------------------------------------------------------------- /2.0/figs/stack.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 2100 1897 2475 2647 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 2100 2272 2475 2272 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 2100 2572 2475 2572 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 2100 1972 2475 1972 20 | -6 21 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 22 | 0 0 1.00 60.00 120.00 23 | 2100 1447 2475 1447 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 2100 1147 2475 1147 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 2092 3097 2467 3097 30 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 31 | 1424 2925 4950 2925 4950 3300 1424 3300 1424 2925 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 1425 1800 4950 1800 4950 2775 1425 2775 1425 1800 34 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 35 | 1425 975 4950 975 4950 1650 1425 1650 1425 975 36 | 4 2 0 50 0 16 11 0.0000 4 165 450 2025 1200 riga1\001 37 | 4 2 0 50 0 16 11 0.0000 4 165 450 2025 1500 riga2\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 540 2025 2025 parte1\001 40 | 4 2 0 50 0 16 11 0.0000 4 165 540 2025 2325 parte2\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 720 1275 1350 \001 49 | 4 2 0 50 0 16 11 0.0000 4 135 810 1275 2325 cat2volte\001 50 | 4 2 0 50 0 16 11 0.0000 4 165 1080 1275 3150 stampa2volte\001 51 | -------------------------------------------------------------------------------- /2.0/figs/stack.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/stack.pdf -------------------------------------------------------------------------------- /2.0/figs/stack2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 11 | 1800 450 3000 450 3000 825 1800 825 1800 450 12 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 13 | 1800 975 3000 975 3000 1350 1800 1350 1800 975 14 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 15 | 1800 1500 3000 1500 3000 1875 1800 1875 1800 1500 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1800 2025 3000 2025 3000 2400 1800 2400 1800 2025 18 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 19 | 1800 2550 3000 2550 3000 2925 1800 2925 1800 2550 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 2175 1147 2550 1147 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 2175 1672 2550 1672 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 2175 2197 2550 2197 29 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 30 | 0 0 1.00 60.00 120.00 31 | 2175 2722 2550 2722 32 | 4 2 0 50 0 16 11 0.0000 4 135 720 1650 675 \001 33 | 4 2 0 50 0 16 11 0.0000 4 135 1530 1650 1200 contoallarovescia\001 34 | 4 2 0 50 0 16 11 0.0000 4 135 1530 1650 1725 contoallarovescia\001 35 | 4 2 0 50 0 16 11 0.0000 4 135 1530 1650 2250 contoallarovescia\001 36 | 4 2 0 50 0 16 11 0.0000 4 135 1530 1650 2775 contoallarovescia\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 45 | -------------------------------------------------------------------------------- /2.0/figs/stack2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/stack2.pdf -------------------------------------------------------------------------------- /2.0/figs/stack3.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 2475.000 5700 2700 5925 2475 5700 2250 11 | 0 0 1.00 60.00 120.00 12 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 1950.000 5700 2175 5925 1950 5700 1725 13 | 0 0 1.00 60.00 120.00 14 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 900.000 5700 1125 5925 900 5700 675 15 | 0 0 1.00 60.00 120.00 16 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 1425.000 5700 1650 5925 1425 5700 1200 17 | 0 0 1.00 60.00 120.00 18 | 6 1950 1050 2775 1200 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 2175 1147 2550 1147 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 24 | -6 25 | 6 2910 1065 4065 1200 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 3525 1147 3900 1147 29 | 4 2 0 50 0 16 11 0.0000 4 120 540 3450 1200 ricors\001 30 | 4 0 0 50 0 16 11 0.0000 4 135 90 3975 1200 2\001 31 | -6 32 | 6 2910 1590 4065 1725 33 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 34 | 0 0 1.00 60.00 120.00 35 | 3525 1672 3900 1672 36 | 4 2 0 50 0 16 11 0.0000 4 120 540 3450 1725 ricors\001 37 | 4 0 0 50 0 16 11 0.0000 4 135 90 3975 1725 1\001 38 | -6 39 | 6 2910 2115 4065 2250 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 3525 2197 3900 2197 43 | 4 2 0 50 0 16 11 0.0000 4 120 540 3450 2250 ricors\001 44 | 4 0 0 50 0 16 11 0.0000 4 135 90 3975 2250 1\001 45 | -6 46 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 47 | 0 0 1.00 60.00 120.00 48 | 2175 1672 2550 1672 49 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 50 | 0 0 1.00 60.00 120.00 51 | 2175 2197 2550 2197 52 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 53 | 0 0 1.00 60.00 120.00 54 | 2175 2722 2550 2722 55 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 56 | 1800 1500 5700 1500 5700 1875 1800 1875 1800 1500 57 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 58 | 1800 2025 5700 2025 5700 2400 1800 2400 1800 2025 59 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 60 | 1800 2550 5700 2550 5700 2925 1800 2925 1800 2550 61 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 62 | 1800 450 5700 450 5700 825 1800 825 1800 450 63 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 64 | 0 0 1.00 60.00 120.00 65 | 5025 2197 5400 2197 66 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 67 | 0 0 1.00 60.00 120.00 68 | 5025 1672 5400 1672 69 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 70 | 0 0 1.00 60.00 120.00 71 | 5025 1147 5400 1147 72 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 73 | 1800 975 5700 975 5700 1350 1800 1350 1800 975 74 | 4 2 0 50 0 16 11 0.0000 4 135 720 1650 675 \001 75 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 1200 fattoriale\001 76 | 4 2 0 50 0 16 11 0.0000 4 90 90 2100 1725 n\001 77 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 1725 2\001 78 | 4 2 0 50 0 16 11 0.0000 4 90 90 2100 2250 n\001 79 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 2250 1\001 80 | 4 2 0 50 0 16 11 0.0000 4 90 90 2100 2775 n\001 81 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 2775 0\001 82 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 1725 fattoriale\001 83 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 2250 fattoriale\001 84 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 2775 fattoriale\001 85 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 2550 1\001 86 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 2025 1\001 87 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 1500 2\001 88 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 975 6\001 89 | 4 0 0 50 0 16 11 0.0000 4 135 90 5475 2250 1\001 90 | 4 2 0 50 0 16 11 0.0000 4 135 810 4950 2250 risultato\001 91 | 4 0 0 50 0 16 11 0.0000 4 135 90 5475 1725 2\001 92 | 4 0 0 50 0 16 11 0.0000 4 135 90 5475 1200 6\001 93 | 4 2 0 50 0 16 11 0.0000 4 135 810 4950 1200 risultato\001 94 | 4 2 0 50 0 16 11 0.0000 4 135 810 4950 1725 risultato\001 95 | -------------------------------------------------------------------------------- /2.0/figs/stack3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/stack3.pdf -------------------------------------------------------------------------------- /2.0/figs/stack4.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 2025 825 2775 1425 11 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 12 | 2175 1125 2550 1125 13 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 14 | 2175 1125 2550 900 15 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 16 | 0 0 1.00 60.00 120.00 17 | 2175 1125 2550 1350 18 | 4 2 0 50 0 16 11 0.0000 4 120 30 2100 1200 i\001 19 | 4 0 0 50 0 16 11 0.0000 4 120 90 2625 1200 2\001 20 | 4 0 0 50 0 16 11 0.0000 4 120 90 2625 975 1\001 21 | 4 0 0 50 0 16 11 0.0000 4 120 90 2625 1425 3\001 22 | -6 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 2175 2100 2550 2100 26 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 27 | 3300 2100 3675 1875 28 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 29 | 0 0 1.00 60.00 120.00 30 | 3300 2100 3675 2100 31 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 32 | 1800 1725 4350 1725 4350 2400 1800 2400 1800 1725 33 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 34 | 1800 750 4350 750 4350 1575 1800 1575 1800 750 35 | 4 2 0 50 0 16 11 0.0000 4 90 90 2100 2175 n\001 36 | 4 0 0 50 0 16 11 0.0000 4 120 90 2625 2175 3\001 37 | 4 2 0 50 0 16 11 0.0000 4 120 30 3225 2175 i\001 38 | 4 0 0 50 0 16 11 0.0000 4 120 90 3750 2175 2\001 39 | 4 0 0 50 0 16 11 0.0000 4 120 90 3750 1950 1\001 40 | 4 0 0 50 0 16 11 0.0000 4 150 975 675 975 printMultTable\001 41 | 4 0 0 50 0 16 11 0.0000 4 150 930 750 1950 printMultiples\001 42 | -------------------------------------------------------------------------------- /2.0/figs/stack4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/stack4.pdf -------------------------------------------------------------------------------- /2.0/figs/stack5.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 4575 2197 4950 2197 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 4575 2497 4950 2497 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 4575 1897 4950 1897 19 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 20 | 2700 1500 3675 1500 3675 1950 2700 1950 2700 1500 21 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 22 | 2700 2100 3675 2100 3675 2550 2700 2550 2700 2100 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 3507 2318 4050 1950 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 3510 1725 4050 1875 29 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 30 | 4125 1725 5550 1725 5550 2700 4125 2700 4125 1725 31 | 4 2 0 50 0 16 11 0.0000 4 135 90 4500 1950 0\001 32 | 4 2 0 50 0 16 11 0.0000 4 135 90 4500 2250 1\001 33 | 4 2 0 50 0 16 11 0.0000 4 135 90 4500 2550 2\001 34 | 4 0 0 50 0 16 11 0.0000 4 135 270 5025 1950 'a'\001 35 | 4 0 0 50 0 16 11 0.0000 4 135 270 5025 2250 'b'\001 36 | 4 0 0 50 0 16 11 0.0000 4 135 270 5025 2550 'c'\001 37 | 4 0 0 50 0 16 11 0.0000 4 135 360 4125 1650 list\001 38 | 4 2 0 50 0 16 11 0.0000 4 120 90 3450 2377 t\001 39 | 4 2 0 50 0 16 11 0.0000 4 135 630 3465 1770 lettere\001 40 | 4 2 0 50 0 16 11 0.0000 4 165 720 2632 2377 decapita\001 41 | 4 0 0 50 0 16 11 0.0000 4 135 720 1842 1770 \001 42 | -------------------------------------------------------------------------------- /2.0/figs/stack5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/stack5.pdf -------------------------------------------------------------------------------- /2.0/figs/state.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 405 765 3675 1950 11 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 12 | 1650 975 3675 975 3675 1950 1650 1950 1650 975 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1447 2475 1447 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2100 1747 2475 1747 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 2100 1147 2475 1147 22 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 23 | 0 0 1.00 60.00 120.00 24 | 1200 1125 1575 1125 25 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1200 0\001 26 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1500 1\001 27 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1800 2\001 28 | 4 0 0 50 0 16 11 0.0000 4 135 810 2550 1200 'cheddar'\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 540 2550 1500 'edam'\001 30 | 4 0 0 50 0 16 11 0.0000 4 165 630 2550 1800 'gouda'\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 900 list\001 32 | 4 2 0 50 0 16 11 0.0000 4 165 720 1125 1200 formaggi\001 33 | -6 34 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 35 | 0 0 1.00 60.00 120.00 36 | 2100 2497 2475 2497 37 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 38 | 1650 3675 3675 3675 3675 4650 1650 4650 1650 3675 39 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 40 | 0 0 1.00 60.00 120.00 41 | 1200 3825 1575 3825 42 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 43 | 0 0 1.00 60.00 120.00 44 | 2100 2850 2475 3075 45 | 2 1 2 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2 46 | 2100 2797 2475 2797 47 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 48 | 1650 2325 3675 2325 3675 3300 1650 3300 1650 2325 49 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 50 | 0 0 1.00 60.00 120.00 51 | 1200 2475 1575 2475 52 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2550 0\001 53 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2850 1\001 54 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 3600 list\001 55 | 4 2 0 50 0 16 11 0.0000 4 120 540 1125 2550 numeri\001 56 | 4 2 0 50 0 16 11 0.0000 4 120 450 1125 3900 vuota\001 57 | 4 0 0 50 0 16 11 0.0000 4 135 180 2550 2550 17\001 58 | 4 0 0 50 0 16 11 0.0000 4 135 270 2550 2850 123\001 59 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 3150 5\001 60 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 2250 list\001 61 | -------------------------------------------------------------------------------- /2.0/figs/state.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/state.pdf -------------------------------------------------------------------------------- /2.0/figs/state2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 2100 1072 2475 1822 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 2100 1447 2475 1447 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 2100 1747 2475 1747 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 2100 1147 2475 1147 20 | -6 21 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 22 | 1050 975 6300 975 6300 1950 1050 1950 1050 975 23 | 4 2 0 50 0 16 11 0.0000 4 150 810 2025 1200 messaggio\001 24 | 4 2 0 50 0 16 11 0.0000 4 90 90 2025 1500 n\001 25 | 4 2 0 50 0 16 11 0.0000 4 150 180 2025 1800 pi\001 26 | 4 0 0 50 0 16 11 0.0000 4 135 180 2550 1500 17\001 27 | 4 0 0 50 0 16 11 0.0000 4 150 1620 2550 1800 3.1415926535897932\001 28 | 4 0 0 50 0 16 11 0.0000 4 165 3780 2550 1200 'Ed ora qualcosa di completamente diverso'\001 29 | -------------------------------------------------------------------------------- /2.0/figs/state2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/state2.pdf -------------------------------------------------------------------------------- /2.0/figs/state3.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1747 2475 1747 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2100 1147 2475 1147 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 2100 2025 2475 2025 22 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 23 | 1200 975 3375 975 3375 2250 1200 2250 1200 975 24 | 4 2 0 50 0 16 11 0.0000 4 165 630 2025 1200 parola1\001 25 | 4 2 0 50 0 16 11 0.0000 4 165 630 2025 1500 parola2\001 26 | 4 0 0 50 0 16 11 0.0000 4 165 540 2550 1200 'pots'\001 27 | 4 0 0 50 0 16 11 0.0000 4 165 540 2550 1500 'stop'\001 28 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1800 i\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 1800 0\001 30 | 4 2 0 50 0 16 11 0.0000 4 150 90 2025 2100 j\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 2100 3\001 32 | -------------------------------------------------------------------------------- /2.0/figs/state3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/state3.pdf -------------------------------------------------------------------------------- /2.0/figs/state4.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 1800 3375 2550 3525 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 1950 3472 2325 3472 14 | 4 2 0 50 0 16 11 0.0000 4 120 90 1875 3525 i\001 15 | 4 0 0 50 0 16 11 0.0000 4 135 90 2400 3525 0\001 16 | -6 17 | 6 3900 3375 4650 3600 18 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 19 | 0 0 1.00 60.00 120.00 20 | 4050 3450 4425 3450 21 | 4 2 0 50 0 16 11 0.0000 4 150 90 3975 3525 j\001 22 | 4 0 0 50 0 16 11 0.0000 4 135 90 4500 3525 3\001 23 | -6 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 1950 2947 2325 2947 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 3750 2947 4125 2947 30 | 2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 31 | 2475 3300 2475 3075 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 1050 2775 5100 2775 5100 3675 1050 3675 1050 2775 34 | 2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 35 | 4537 3307 4537 3082 36 | 4 2 0 50 0 16 11 0.0000 4 165 630 1875 3000 parola1\001 37 | 4 0 0 50 0 16 11 0.0000 4 165 540 2400 3000 'pots'\001 38 | 4 2 0 50 0 16 11 0.0000 4 165 630 3675 3000 parola2\001 39 | 4 0 0 50 0 16 11 0.0000 4 165 540 4200 3000 'stop'\001 40 | -------------------------------------------------------------------------------- /2.0/figs/state4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/state4.pdf -------------------------------------------------------------------------------- /2.0/figs/state5.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 450 1500 2400 3300 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 1575 2197 1950 2197 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 1575 1897 1950 1897 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 750 1875 1125 1875 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 1575 2797 1950 2797 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 1575 3097 1950 3097 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 1575 2497 1950 2497 29 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 30 | 1125 1725 2400 1725 2400 3300 1125 3300 1125 1725 31 | 4 2 0 50 0 16 11 0.0000 4 120 135 1500 1950 'a'\001 32 | 4 0 0 50 0 16 11 0.0000 4 120 90 2025 1950 1\001 33 | 4 0 0 50 0 16 11 0.0000 4 120 90 2025 2250 1\001 34 | 4 0 0 50 0 16 11 0.0000 4 120 255 1125 1650 dict\001 35 | 4 0 0 50 0 16 11 0.0000 4 120 255 450 1950 hist\001 36 | 4 2 0 50 0 16 11 0.0000 4 150 150 1500 2250 'p'\001 37 | 4 0 0 50 0 16 11 0.0000 4 120 90 2025 2850 1\001 38 | 4 2 0 50 0 16 11 0.0000 4 120 150 1500 3150 'o'\001 39 | 4 0 0 50 0 16 11 0.0000 4 120 90 2025 3150 1\001 40 | 4 2 0 50 0 16 11 0.0000 4 120 120 1500 2550 'r'\001 41 | 4 0 0 50 0 16 11 0.0000 4 120 90 2025 2550 2\001 42 | 4 2 0 50 0 16 11 0.0000 4 120 120 1500 2850 't'\001 43 | -6 44 | 6 4350 1500 5700 3000 45 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 46 | 0 0 1.00 60.00 120.00 47 | 4800 2197 5175 2197 48 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 49 | 0 0 1.00 60.00 120.00 50 | 4800 1897 5175 1897 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 4800 2497 5175 2497 54 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 55 | 0 0 1.00 60.00 120.00 56 | 4800 2797 5175 2797 57 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 58 | 4350 1725 5700 1725 5700 3000 4350 3000 4350 1725 59 | 4 2 0 50 0 16 11 0.0000 4 120 90 4725 1950 0\001 60 | 4 2 0 50 0 16 11 0.0000 4 120 90 4725 2250 1\001 61 | 4 0 0 50 0 16 11 0.0000 4 120 135 5250 1950 'a'\001 62 | 4 0 0 50 0 16 11 0.0000 4 150 150 5250 2250 'p'\001 63 | 4 0 0 50 0 16 11 0.0000 4 120 195 4350 1650 list\001 64 | 4 2 0 50 0 16 11 0.0000 4 120 90 4725 2550 2\001 65 | 4 0 0 50 0 16 11 0.0000 4 120 120 5250 2550 't'\001 66 | 4 0 0 50 0 16 11 0.0000 4 120 150 5250 2850 'o'\001 67 | 4 2 0 50 0 16 11 0.0000 4 120 90 4725 2850 3\001 68 | -6 69 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 70 | 0 0 1.00 60.00 120.00 71 | 3825 1897 4350 1890 72 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 73 | 0 0 1.00 60.00 120.00 74 | 3000 1875 3375 1875 75 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 76 | 3375 1725 4050 1725 4050 3750 3375 3750 3375 1725 77 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 78 | 0 0 1.00 60.00 120.00 79 | 3825 3529 4350 3522 80 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 81 | 0 0 1.00 60.00 120.00 82 | 4800 3547 5175 3547 83 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 84 | 4350 3375 5700 3375 5700 3750 4350 3750 4350 3375 85 | 4 2 0 50 0 16 11 0.0000 4 120 90 3750 1950 1\001 86 | 4 0 0 50 0 16 11 0.0000 4 120 255 3375 1650 dict\001 87 | 4 0 0 50 0 16 11 0.0000 4 120 210 2700 1950 inv\001 88 | 4 2 0 50 0 16 11 0.0000 4 120 90 3750 3600 2\001 89 | 4 2 0 50 0 16 11 0.0000 4 120 90 4725 3600 0\001 90 | 4 0 0 50 0 16 11 0.0000 4 120 195 4350 3300 list\001 91 | 4 0 0 50 0 16 11 0.0000 4 120 120 5250 3600 'r'\001 92 | -------------------------------------------------------------------------------- /2.0/figs/state5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/state5.pdf -------------------------------------------------------------------------------- /2.0/figs/time.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2175 1447 2550 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2175 1747 2542 1747 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2175 1147 2550 1147 19 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 20 | 1350 975 2925 975 2925 1950 1350 1950 1350 975 21 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 22 | 0 0 1.00 60.00 120.00 23 | 1050 1200 1373 1200 24 | 4 0 0 50 0 16 11 0.0000 4 135 180 2625 1500 59\001 25 | 4 0 0 50 0 16 11 0.0000 4 135 180 2625 1800 30\001 26 | 4 2 0 50 0 16 11 0.0000 4 90 270 2100 1200 ora\001 27 | 4 2 0 50 0 16 11 0.0000 4 120 540 2100 1500 minuto\001 28 | 4 2 0 50 0 16 11 0.0000 4 135 630 2100 1800 secondo\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 180 2625 1200 11\001 30 | 4 0 0 50 0 16 11 0.0000 4 165 450 1425 900 Tempo\001 31 | 4 0 0 50 0 16 11 0.0000 4 150 450 525 1260 tempo\001 32 | -------------------------------------------------------------------------------- /2.0/figs/time.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/time.pdf -------------------------------------------------------------------------------- /2.0/figs/towers.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/towers.pdf -------------------------------------------------------------------------------- /2.0/figs/tuple1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1147 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1650 975 3675 975 3675 1650 1650 1650 1650 975 18 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1200 0\001 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 1\001 20 | 4 0 0 50 0 16 11 0.0000 4 120 510 2550 1200 'Cleese'\001 21 | 4 0 0 50 0 16 11 0.0000 4 120 405 2550 1500 'John'\001 22 | 4 0 0 50 0 16 11 0.0000 4 150 330 1650 900 tuple\001 23 | -------------------------------------------------------------------------------- /2.0/figs/tuple1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/figs/tuple1.pdf -------------------------------------------------------------------------------- /2.0/htmlonly: -------------------------------------------------------------------------------- 1 | % put commands here that should be used for the HTML 2 | % version of the book but not Postscript or PDF 3 | 4 | \newcommand{\beforefig}{} 5 | \newcommand{\afterfig}{} 6 | 7 | \newcommand{\beforeverb}{\blue \large} 8 | \newcommand{\afterverb}{\black \normalsize} 9 | 10 | \newcommand{\adjustpage}[1]{} 11 | 12 | \newcommand{\clearemptydoublepage}{} 13 | \newcommand{\blankpage}{} 14 | 15 | \newcommand{\spacing}{} 16 | \newcommand{\endspacing}{} 17 | 18 | \newcommand{\frontmatter}{} 19 | \newcommand{\mainmatter}{} 20 | 21 | \newcommand{\theoremstyle}[1]{} 22 | \newcommand{\newtheoremstyle}[1]{} 23 | 24 | \newcommand{\vfill}{} 25 | 26 | \htmlhead{\rawhtmlinput{header.html}} 27 | 28 | \htmlfoot{\rawhtmlinput{footer.html}} -------------------------------------------------------------------------------- /2.0/latexonly: -------------------------------------------------------------------------------- 1 | \sloppy 2 | %\setlength{\topmargin}{-0.375in} 3 | %\setlength{\oddsidemargin}{0.0in} 4 | %\setlength{\evensidemargin}{0.0in} 5 | 6 | % Uncomment these to center on 8.5 x 11 7 | %\setlength{\topmargin}{0.625in} 8 | %\setlength{\oddsidemargin}{0.875in} 9 | %\setlength{\evensidemargin}{0.875in} 10 | 11 | %\setlength{\textheight}{7.2in} 12 | 13 | \setlength{\headsep}{3ex} 14 | \setlength{\parindent}{0.0in} 15 | \setlength{\parskip}{1.7ex plus 0.5ex minus 0.5ex} 16 | \renewcommand{\baselinestretch}{1.02} 17 | 18 | % see LaTeX Companion page 62 19 | \setlength{\topsep}{-0.0\parskip} 20 | \setlength{\partopsep}{-0.5\parskip} 21 | \setlength{\itemindent}{0.0in} 22 | \setlength{\listparindent}{0.0in} 23 | 24 | % see LaTeX Companion page 26 25 | % these are copied from /usr/local/teTeX/share/texmf/tex/latex/base/book.cls 26 | % all I changed is afterskip 27 | 28 | \makeatletter 29 | 30 | \renewcommand{\section}{\@startsection 31 | {section} {1} {0mm}% 32 | {-3.5ex \@plus -1ex \@minus -.2ex}% 33 | {0.7ex \@plus.2ex}% 34 | {\normalfont\Large\bfseries}} 35 | \renewcommand\subsection{\@startsection {subsection}{2}{0mm}% 36 | {-3.25ex\@plus -1ex \@minus -.2ex}% 37 | {0.3ex \@plus .2ex}% 38 | {\normalfont\large\bfseries}} 39 | \renewcommand\subsubsection{\@startsection {subsubsection}{3}{0mm}% 40 | {-3.25ex\@plus -1ex \@minus -.2ex}% 41 | {0.3ex \@plus .2ex}% 42 | {\normalfont\normalsize\bfseries}} 43 | 44 | % The following line adds a little extra space to the column 45 | % in which the Section numbers appear in the table of contents 46 | \renewcommand{\l@section}{\@dottedtocline{1}{1.5em}{3.0em}} 47 | \setcounter{tocdepth}{1} 48 | 49 | \makeatother 50 | 51 | \newcommand{\beforefig}{\vspace{1.3\parskip}} 52 | \newcommand{\afterfig}{\vspace{-0.2\parskip}} 53 | 54 | \newcommand{\beforeverb}{\vspace{0.6\parskip}} 55 | \newcommand{\afterverb}{\vspace{0.6\parskip}} 56 | 57 | \newcommand{\adjustpage}[1]{\enlargethispage{#1\baselineskip}} 58 | 59 | 60 | % Note: the following command seems to cause problems for Acroreader 61 | % on Windows, so for now I am overriding it. 62 | %\newcommand{\clearemptydoublepage}{ 63 | % \newpage{\pagestyle{empty}\cleardoublepage}} 64 | \newcommand{\clearemptydoublepage}{\cleardoublepage} 65 | 66 | %\newcommand{\blankpage}{\pagestyle{empty}\vspace*{1in}\newpage} 67 | \newcommand{\blankpage}{\vspace*{1in}\newpage} 68 | 69 | % HEADERS 70 | 71 | \renewcommand{\chaptermark}[1]{\markboth{#1}{}} 72 | \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}{}} 73 | 74 | \lhead[\fancyplain{}{\bfseries\thepage}]% 75 | {\fancyplain{}{\bfseries\rightmark}} 76 | \rhead[\fancyplain{}{\bfseries\leftmark}]% 77 | {\fancyplain{}{\bfseries\thepage}} 78 | \cfoot{} 79 | 80 | \pagestyle{fancyplain} 81 | 82 | 83 | % turn off the rule under the header 84 | %\setlength{\headrulewidth}{0pt} 85 | 86 | % the following is a brute-force way to prevent the headers 87 | % from getting transformed into all-caps 88 | \renewcommand\MakeUppercase{} 89 | 90 | % Exercise environment 91 | \newtheoremstyle{myex}% name 92 | {9pt}% Space above 93 | {9pt}% Space below 94 | {}% Body font 95 | {}% Indent amount (empty = no indent, \parindent = para indent) 96 | {\bfseries}% Thm head font 97 | {}% Punctuation after thm head 98 | {0.5em}% Space after thm head: " " = normal interword space; 99 | % \newline = linebreak 100 | {}% Thm head spec (can be left empty, meaning `normal') 101 | 102 | \theoremstyle{myex} 103 | -------------------------------------------------------------------------------- /2.0/thinkpython_italian.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/2.0/thinkpython_italian.pdf -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | LATEX = latex 2 | 3 | DVIPS = dvips 4 | 5 | PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \ 6 | -dCompressPages=true -dUseFlateCompression=true \ 7 | -dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100 8 | 9 | 10 | %.dvi: %.tex 11 | $(LATEX) $< 12 | 13 | %.ps: %.dvi 14 | $(DVIPS) -o $@ $< 15 | 16 | %.pdf: %.ps 17 | ps2pdf $(PDFFLAGS) $< 18 | 19 | all: book.tex 20 | pdflatex book 21 | makeindex book.idx 22 | pdflatex book 23 | mv book.pdf thinkpython2.pdf 24 | 25 | hevea: book.tex header.html footer.html 26 | # replace the pdfs with eps 27 | sed s/.pdf/.eps/g book.tex > thinkpython2.tex 28 | latex thinkpython2 29 | rm -rf html 30 | mkdir html 31 | hevea -fix -O -e latexonly htmlonly thinkpython2 32 | # the following greps are a kludge to prevent imagen from seeing 33 | # the definitions in latexonly, and to avoid headers on the images 34 | grep -v latexonly thinkpython2.image.tex > a; mv a thinkpython2.image.tex 35 | sed s/\\\\usepackage{fancyhdr}// < thinkpython2.image.tex > a; mv a thinkpython2.image.tex 36 | imagen -png thinkpython2 37 | hacha thinkpython2.html 38 | cp up.png next.png back.png html 39 | mv index.html thinkpython2.css thinkpython2*.html thinkpython2*.png *motif.gif html 40 | 41 | DEST = /home/downey/public_html/greent/thinkpython2 42 | 43 | epub: book.tex 44 | #replace the pdfs with eps 45 | sed s/.pdf/.eps/g book.tex >thinkpython2.tex 46 | latex thinkpython2 47 | rm -rf epub 48 | mkdir epub 49 | hevea -fix -O -e latexonly htmlonly thinkpython2 50 | grep -v latexonly thinkpython2.image.tex > a; mv a thinkpython2.image.tex 51 | sed s/\\\\usepackage{fancyhdr}// < thinkpython2.image.tex > a; mv a thinkpython2.image.tex 52 | imagen -png thinkpython2 53 | mv thinkpython2.html thinkpython2*.png epub 54 | cd epub; ebook-convert thinkpython2.html thinkpython2.epub 55 | 56 | distrib: 57 | rm -rf dist 58 | mkdir dist dist/tex dist/tex/figs 59 | rsync -a thinkpython2.pdf html dist 60 | rsync -a dist/* $(DEST) 61 | chmod -R o+r $(DEST)/* 62 | cd $(DEST)/..; sh back 63 | 64 | # UPDATE THE PATHS BELOW BEFORE RUNNING PLASTEX 65 | 66 | plastex: 67 | # Before running plastex, we need the current directory in PYTHONPATH 68 | # export PYTHONPATH=$PYTHONPATH:. 69 | python Filist.py book.tex > book.plastex 70 | rm -rf /home/downey/thinkpython2/trunk/book 71 | plastex --renderer=DocBook --theme=book --image-resolution=300 --filename=book.xml book.plastex 72 | rm -rf /home/downey/thinkpython2/trunk/book/.svn 73 | 74 | plastest: 75 | # Before running plastex, we need the current directory in PYTHONPATH 76 | # export PYTHONPATH=$PYTHONPATH:. 77 | python Filist.py test.tex > test.plastex 78 | rm -rf /home/downey/thinkpython2/trunk/test 79 | plastex --renderer=DocBook --theme=test --filename=test.xml test.plastex 80 | rm -rf /home/downey/thinkpython2/trunk/test/.svn 81 | 82 | xxe: 83 | xmlcopyeditor ~/ThinkPython2/book/book/book.xml & 84 | 85 | lint: 86 | xmllint -noout book/book.xml 87 | 88 | OREILLY = atlas 89 | 90 | oreilly: 91 | rsync -a book.tex $(OREILLY) 92 | rsync -a book/ $(OREILLY) 93 | rsync -a figs/* $(OREILLY)/figs 94 | cd $(OREILLY); git add . 95 | cd $(OREILLY); git commit -m "Automated check in." 96 | cd $(OREILLY); git push 97 | 98 | clean: 99 | rm -f *~ *.aux *.log *.dvi *.idx *.ilg *.ind *.toc 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ThinkPythonItalian 2 | Sorgenti LaTeX di Pensare in Python, traduzione italiana di Think Python. 3 | 4 | [Download della versione PDF della traduzione.](https://github.com/AllenDowney/ThinkPythonItalian/blob/master/thinkpython_italian.pdf) 5 | 6 | Traduzione di Andrea Zanella. 7 | 8 | La versione originale in inglese di Allen B. Downey si trova sul sito [thinkpython2.com](http://thinkpython2.com) 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/back.png -------------------------------------------------------------------------------- /figs/assign2.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: assign2.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 22:38:29 2015 5 | %%BoundingBox: 0 0 78 42 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 42 moveto 0 0 lineto 78 0 lineto 78 42 lineto closepath clip newpath 85 | -134.3 99.7 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 2250 975 m 3525 975 l 3525 1650 l 2250 1650 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | gs clippath 111 | 2995 1451 m 3139 1500 l 3158 1443 l 3015 1394 l 3015 1394 l 3119 1462 l 2995 1451 l cp 112 | eoclip 113 | n 2760 1339 m 114 | 3135 1467 l gs col0 s gr gr 115 | 116 | % arrowhead 117 | n 2995 1451 m 3119 1462 l 3015 1394 l col0 s 118 | % Polyline 119 | n 3075 1080 m 120 | 3300 1230 l gs col0 s gr 121 | % Polyline 122 | n 3300 1080 m 123 | 3075 1230 l gs col0 s gr 124 | % Polyline 125 | [15 45] 45 sd 126 | n 2775 1275 m 127 | 3150 1178 l gs col0 s gr [] 0 sd 128 | /Helvetica ff 183.33 scf sf 129 | 3150 1530 m 130 | gs 1 -1 sc (7) col0 sh gr 131 | /Helvetica ff 183.33 scf sf 132 | 3150 1230 m 133 | gs 1 -1 sc (5) col0 sh gr 134 | /Helvetica ff 183.33 scf sf 135 | 2625 1350 m 136 | gs 1 -1 sc (x) dup sw pop neg 0 rm col0 sh gr 137 | % here ends figure; 138 | pagefooter 139 | showpage 140 | %%Trailer 141 | %EOF 142 | -------------------------------------------------------------------------------- /figs/assign2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2760 1339 3135 1467 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2 14 | 3075 1080 3300 1230 15 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 0 0 2 16 | 3300 1080 3075 1230 17 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 18 | 2775 1275 3150 1178 19 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 20 | 2250 975 3525 975 3525 1650 2250 1650 2250 975 21 | 4 0 0 50 0 16 11 0.0000 4 135 90 3150 1530 7\001 22 | 4 0 0 50 0 16 11 0.0000 4 135 90 3150 1230 5\001 23 | 4 2 0 50 0 16 11 0.0000 4 90 90 2625 1350 x\001 24 | -------------------------------------------------------------------------------- /figs/assign2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/assign2.pdf -------------------------------------------------------------------------------- /figs/banana.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: banana.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 21:40:09 2015 5 | %%BoundingBox: 0 0 203 52 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 52 moveto 0 0 lineto 203 0 lineto 203 52 lineto closepath clip newpath 85 | -86.6 99.9 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1455 825 m 4800 825 l 4800 1350 l 1455 1350 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | [15 45] 45 sd 111 | n 2700 825 m 112 | 2700 1500 l gs col0 s gr [] 0 sd 113 | % Polyline 114 | [15 45] 45 sd 115 | n 3000 825 m 116 | 3000 1500 l gs col0 s gr [] 0 sd 117 | % Polyline 118 | [15 45] 45 sd 119 | n 3300 825 m 120 | 3300 1500 l gs col0 s gr [] 0 sd 121 | % Polyline 122 | [15 45] 45 sd 123 | n 3600 825 m 124 | 3600 1500 l gs col0 s gr [] 0 sd 125 | % Polyline 126 | [15 45] 45 sd 127 | n 3900 825 m 128 | 3900 1500 l gs col0 s gr [] 0 sd 129 | % Polyline 130 | [15 45] 45 sd 131 | n 4200 825 m 132 | 4200 1500 l gs col0 s gr [] 0 sd 133 | % Polyline 134 | [15 45] 45 sd 135 | n 4500 825 m 136 | 4500 1500 l gs col0 s gr [] 0 sd 137 | % Polyline 138 | gs clippath 139 | 2338 1110 m 2490 1110 l 2490 1050 l 2338 1050 l 2338 1050 l 2458 1080 l 2338 1110 l cp 140 | eoclip 141 | n 2100 1080 m 142 | 2475 1080 l gs col0 s gr gr 143 | 144 | % arrowhead 145 | n 2338 1110 m 2458 1080 l 2338 1050 l col0 s 146 | /Helvetica ff 183.33 scf sf 147 | 2025 1125 m 148 | gs 1 -1 sc (frutto) dup sw pop neg 0 rm col0 sh gr 149 | /Helvetica ff 183.33 scf sf 150 | 2025 1650 m 151 | gs 1 -1 sc (indice) col0 sh gr 152 | /Helvetica ff 366.67 scf sf 153 | 2775 1200 m 154 | gs 1 -1 sc (b) col0 sh gr 155 | /Helvetica ff 366.67 scf sf 156 | 3075 1200 m 157 | gs 1 -1 sc (a) col0 sh gr 158 | /Helvetica ff 366.67 scf sf 159 | 3375 1200 m 160 | gs 1 -1 sc (n) col0 sh gr 161 | /Helvetica ff 366.67 scf sf 162 | 3975 1200 m 163 | gs 1 -1 sc (n) col0 sh gr 164 | /Helvetica ff 366.67 scf sf 165 | 3675 1200 m 166 | gs 1 -1 sc (a) col0 sh gr 167 | /Helvetica ff 366.67 scf sf 168 | 4275 1200 m 169 | gs 1 -1 sc (a) col0 sh gr 170 | /Helvetica ff 366.67 scf sf 171 | 4575 1200 m 172 | gs 1 -1 sc (') col0 sh gr 173 | /Helvetica ff 183.33 scf sf 174 | 2625 1650 m 175 | gs 1 -1 sc (0) col0 sh gr 176 | /Helvetica ff 183.33 scf sf 177 | 2925 1650 m 178 | gs 1 -1 sc (1) col0 sh gr 179 | /Helvetica ff 183.33 scf sf 180 | 3225 1650 m 181 | gs 1 -1 sc (2) col0 sh gr 182 | /Helvetica ff 183.33 scf sf 183 | 3525 1650 m 184 | gs 1 -1 sc (3) col0 sh gr 185 | /Helvetica ff 183.33 scf sf 186 | 3825 1650 m 187 | gs 1 -1 sc (4) col0 sh gr 188 | /Helvetica ff 183.33 scf sf 189 | 4125 1650 m 190 | gs 1 -1 sc (5) col0 sh gr 191 | /Helvetica ff 183.33 scf sf 192 | 4425 1650 m 193 | gs 1 -1 sc (6) col0 sh gr 194 | /Helvetica ff 366.67 scf sf 195 | 2550 1200 m 196 | gs 1 -1 sc (') col0 sh gr 197 | % here ends figure; 198 | pagefooter 199 | showpage 200 | %%Trailer 201 | %EOF 202 | -------------------------------------------------------------------------------- /figs/banana.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 1485 990 2565 1650 11 | 4 2 0 50 0 16 11 0.0000 4 135 540 2025 1125 frutto\001 12 | 4 0 0 50 0 16 11 0.0000 4 135 540 2025 1650 indice\001 13 | -6 14 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 15 | 2700 825 2700 1500 16 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 17 | 3000 825 3000 1500 18 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 19 | 3300 825 3300 1500 20 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 21 | 3600 825 3600 1500 22 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 23 | 3900 825 3900 1500 24 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 25 | 4200 825 4200 1500 26 | 2 1 2 1 0 7 50 0 -1 3.000 0 0 -1 0 0 2 27 | 4500 825 4500 1500 28 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 29 | 0 0 1.00 60.00 120.00 30 | 2100 1080 2475 1080 31 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 32 | 1455 825 4800 825 4800 1350 1455 1350 1455 825 33 | 4 0 0 50 0 16 22 0.0000 4 135 90 2775 1200 b\001 34 | 4 0 0 50 0 16 22 0.0000 4 90 90 3075 1200 a\001 35 | 4 0 0 50 0 16 22 0.0000 4 90 90 3375 1200 n\001 36 | 4 0 0 50 0 16 22 0.0000 4 90 90 3975 1200 n\001 37 | 4 0 0 50 0 16 22 0.0000 4 90 90 3675 1200 a\001 38 | 4 0 0 50 0 16 22 0.0000 4 90 90 4275 1200 a\001 39 | 4 0 0 50 0 16 22 0.0000 4 45 90 4575 1200 '\001 40 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 1650 0\001 41 | 4 0 0 50 0 16 11 0.0000 4 135 90 2925 1650 1\001 42 | 4 0 0 50 0 16 11 0.0000 4 135 90 3225 1650 2\001 43 | 4 0 0 50 0 16 11 0.0000 4 135 90 3525 1650 3\001 44 | 4 0 0 50 0 16 11 0.0000 4 135 90 3825 1650 4\001 45 | 4 0 0 50 0 16 11 0.0000 4 135 90 4125 1650 5\001 46 | 4 0 0 50 0 16 11 0.0000 4 135 90 4425 1650 6\001 47 | 4 0 0 50 0 16 22 0.0000 4 45 90 2550 1200 '\001 48 | -------------------------------------------------------------------------------- /figs/banana.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/banana.pdf -------------------------------------------------------------------------------- /figs/card1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 825 1200 1200 1200 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2625 1205 3150 1198 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2625 1953 3150 1946 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 900 2850 1275 2850 22 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 23 | 1200 1050 2850 1050 2850 2175 1200 2175 1200 1050 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 1950 3150 2325 3150 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 1950 2925 2325 2925 30 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 31 | 1275 2700 2700 2700 2700 3375 1275 3375 1275 2700 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 3150 1050 3525 1050 3525 1425 3150 1425 3150 1050 34 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 35 | 3150 1800 3525 1800 3525 2175 3150 2175 3150 1800 36 | 4 0 0 50 0 16 11 0.0000 4 135 360 3150 975 list\001 37 | 4 0 0 50 0 16 11 0.0000 4 135 360 3150 1725 list\001 38 | 4 2 0 50 0 16 11 0.0000 4 150 990 2550 2025 nomi_valori\001 39 | 4 2 0 50 0 16 11 0.0000 4 135 450 750 1275 Carta\001 40 | 4 2 0 50 0 16 11 0.0000 4 135 540 825 2925 carta1\001 41 | 4 0 0 50 0 16 11 0.0000 4 135 450 1275 2625 Carta\001 42 | 4 0 0 50 0 16 11 0.0000 4 150 360 1200 975 type\001 43 | 4 2 0 50 0 16 11 0.0000 4 135 810 2550 1275 nomi_semi\001 44 | 4 0 0 50 0 16 11 0.0000 4 135 180 2475 3225 11\001 45 | 4 0 0 50 0 16 11 0.0000 4 135 90 2475 2925 1\001 46 | 4 2 0 50 0 16 11 0.0000 4 90 360 1875 2925 seme\001 47 | 4 2 0 50 0 16 11 0.0000 4 135 540 1875 3225 valore\001 48 | -------------------------------------------------------------------------------- /figs/card1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/card1.pdf -------------------------------------------------------------------------------- /figs/class1.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: class1.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 21:44:38 2015 5 | %%BoundingBox: 0 0 150 87 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 87 moveto 0 0 lineto 150 0 lineto 150 87 lineto closepath clip newpath 85 | -156.8 149.2 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 2625 1050 m 3525 1050 l 3525 1500 l 2625 1500 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | n 2625 2025 m 3525 2025 l 3525 2475 l 2625 2475 l 111 | cp gs col7 0.90 shd ef gr gs col0 s gr 112 | % Polyline 113 | n 4200 1050 m 5100 1050 l 5100 1500 l 4200 1500 l 114 | cp gs col7 0.90 shd ef gr gs col0 s gr 115 | % Polyline 116 | gs clippath 117 | 3150 1627 m 3150 1485 l 3000 1485 l 3000 1627 l 3000 1627 l 3075 1507 l 3150 1627 l cp 118 | eoclip 119 | n 3075 2025 m 120 | 3075 1500 l gs col0 s gr gr 121 | 122 | % arrowhead 123 | n 3150 1627 m 3075 1507 l 3000 1627 l 3150 1627 l cp gs col7 1.00 shd ef gr col0 s 124 | % Polyline 125 | gs clippath 126 | 4071 1335 m 4215 1335 l 4215 1215 l 4071 1215 l 4071 1215 l 4191 1275 l 4071 1335 l cp 127 | eoclip 128 | n 3525 1275 m 129 | 4200 1275 l gs col0 s gr gr 130 | 131 | % arrowhead 132 | n 4071 1335 m 4191 1275 l 4071 1215 l col0 s 133 | /Helvetica ff 183.33 scf sf 134 | 2850 2325 m 135 | gs 1 -1 sc (Mano) col0 sh gr 136 | /Helvetica ff 183.33 scf sf 137 | 2850 1350 m 138 | gs 1 -1 sc (Mazzo) col0 sh gr 139 | /Helvetica ff 233.33 scf sf 140 | 4125 1275 m 141 | gs 1 -1 sc (*) dup sw pop neg 0 rm col0 sh gr 142 | /Helvetica ff 183.33 scf sf 143 | 4800 1350 m 144 | gs 1 -1 sc (Carta) dup sw pop neg 0 rm col0 sh gr 145 | % here ends figure; 146 | pagefooter 147 | showpage 148 | %%Trailer 149 | %EOF 150 | -------------------------------------------------------------------------------- /figs/class1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 11 | 2625 1050 3525 1050 3525 1500 2625 1500 2625 1050 12 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 13 | 2625 2025 3525 2025 3525 2475 2625 2475 2625 2025 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 1 0 1.00 150.00 120.00 16 | 3075 2025 3075 1500 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 120.00 120.00 19 | 3525 1275 4200 1275 20 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 21 | 4200 1050 5100 1050 5100 1500 4200 1500 4200 1050 22 | 4 0 0 50 0 16 11 0.0000 4 135 360 2850 2325 Mano\001 23 | 4 0 0 50 0 16 11 0.0000 4 135 450 2850 1350 Mazzo\001 24 | 4 2 0 50 0 16 14 0.0000 4 75 90 4125 1275 *\001 25 | 4 2 0 50 0 16 11 0.0000 4 135 450 4800 1350 Carta\001 26 | -------------------------------------------------------------------------------- /figs/class1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/class1.pdf -------------------------------------------------------------------------------- /figs/dict1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 4800 1575 6150 3075 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 5250 2272 5625 2272 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 5250 1972 5625 1972 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 5250 2572 5625 2572 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 5250 2872 5625 2872 23 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 24 | 4800 1800 6150 1800 6150 3075 4800 3075 4800 1800 25 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2025 0\001 26 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2325 1\001 27 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 2025 'a'\001 28 | 4 0 0 50 0 16 11 0.0000 4 165 270 5700 2325 'p'\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 360 4800 1725 list\001 30 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2625 2\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 2625 't'\001 32 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 2925 'o'\001 33 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 2925 3\001 34 | -6 35 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 36 | 4800 3450 6150 3450 6150 3825 4800 3825 4800 3450 37 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 38 | 0 0 1.00 60.00 120.00 39 | 5250 3600 5625 3600 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 4203 1953 4800 1946 43 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 44 | 3675 1800 4350 1800 4350 3825 3675 3825 3675 1800 45 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 46 | 0 0 1.00 60.00 120.00 47 | 4203 3600 4800 3593 48 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 49 | 0 0 1.00 60.00 120.00 50 | 1575 2197 1950 2197 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 1575 1897 1950 1897 54 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 55 | 0 0 1.00 60.00 120.00 56 | 1575 2797 1950 2797 57 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 58 | 0 0 1.00 60.00 120.00 59 | 1575 3097 1950 3097 60 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 61 | 0 0 1.00 60.00 120.00 62 | 1575 2497 1950 2497 63 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 64 | 1125 1725 2400 1725 2400 3300 1125 3300 1125 1725 65 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 66 | 0 0 1.00 60.00 120.00 67 | 3300 1950 3675 1950 68 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 69 | 0 0 1.00 60.00 120.00 70 | 750 1950 1125 1950 71 | 4 0 0 50 0 16 11 0.0000 4 120 630 2700 1950 inverso\001 72 | 4 0 0 50 0 16 11 0.0000 4 135 360 3675 1725 dict\001 73 | 4 2 0 50 0 16 11 0.0000 4 135 90 5175 3675 0\001 74 | 4 0 0 50 0 16 11 0.0000 4 135 270 5700 3675 'r'\001 75 | 4 2 0 50 0 16 11 0.0000 4 135 90 4050 2025 1\001 76 | 4 0 0 50 0 16 11 0.0000 4 135 360 4800 3375 list\001 77 | 4 2 0 50 0 16 11 0.0000 4 135 90 4050 3675 2\001 78 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 1950 'a'\001 79 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 1950 1\001 80 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2250 1\001 81 | 4 0 0 50 0 16 11 0.0000 4 135 360 1125 1650 dict\001 82 | 4 2 0 50 0 16 11 0.0000 4 165 270 1500 2250 'p'\001 83 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2850 1\001 84 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 3150 'o'\001 85 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 3150 1\001 86 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 2550 'r'\001 87 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2550 2\001 88 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 2850 't'\001 89 | 4 0 0 50 0 16 11 0.0000 4 120 360 432 1950 isto\001 90 | -------------------------------------------------------------------------------- /figs/dict1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/dict1.pdf -------------------------------------------------------------------------------- /figs/dict2.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-2.0 EPSF-2.0 2 | %%Title: dict2.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 4 4 | %%CreationDate: Tue Jul 31 12:39:25 2007 5 | %%For: downey@rocky.olin.edu (Allen Downey) 6 | %%BoundingBox: 0 0 231 125 7 | %%Magnification: 1.0000 8 | %%EndComments 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | save 48 | newpath 0 125 moveto 0 0 lineto 231 0 lineto 231 125 lineto closepath clip newpath 49 | -75.8 194.2 translate 50 | 1 -1 scale 51 | 52 | /cp {closepath} bind def 53 | /ef {eofill} bind def 54 | /gr {grestore} bind def 55 | /gs {gsave} bind def 56 | /sa {save} bind def 57 | /rs {restore} bind def 58 | /l {lineto} bind def 59 | /m {moveto} bind def 60 | /rm {rmoveto} bind def 61 | /n {newpath} bind def 62 | /s {stroke} bind def 63 | /sh {show} bind def 64 | /slc {setlinecap} bind def 65 | /slj {setlinejoin} bind def 66 | /slw {setlinewidth} bind def 67 | /srgb {setrgbcolor} bind def 68 | /rot {rotate} bind def 69 | /sc {scale} bind def 70 | /sd {setdash} bind def 71 | /ff {findfont} bind def 72 | /sf {setfont} bind def 73 | /scf {scalefont} bind def 74 | /sw {stringwidth} bind def 75 | /tr {translate} bind def 76 | /tnt {dup dup currentrgbcolor 77 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 78 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 79 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 80 | bind def 81 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 82 | 4 -2 roll mul srgb} bind def 83 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 84 | /$F2psEnd {$F2psEnteredState restore end} def 85 | 86 | $F2psBegin 87 | 10 setmiterlimit 88 | 0 slj 0 slc 89 | 0.06000 0.06000 sc 90 | % 91 | % Fig objects follow 92 | % 93 | % 94 | % here starts figure with depth 51 95 | % Polyline 96 | 7.500 slw 97 | n 1275 1350 m 5100 1350 l 5100 3225 l 1275 3225 l 98 | cp gs col7 0.90 shd ef gr gs col0 s gr 99 | % Polyline 100 | gs clippath 101 | 3690 1852 m 3690 1792 l 3538 1792 l 3658 1822 l 3538 1852 l cp 102 | eoclip 103 | n 3300 1822 m 104 | 3675 1822 l gs col0 s gr gr 105 | 106 | % arrowhead 107 | n 3538 1852 m 3658 1822 l 3538 1792 l col0 s 108 | % Polyline 109 | gs clippath 110 | 3690 1552 m 3690 1492 l 3538 1492 l 3658 1522 l 3538 1552 l cp 111 | eoclip 112 | n 3300 1522 m 113 | 3675 1522 l gs col0 s gr gr 114 | 115 | % arrowhead 116 | n 3538 1552 m 3658 1522 l 3538 1492 l col0 s 117 | % Polyline 118 | gs clippath 119 | 3690 2452 m 3690 2392 l 3538 2392 l 3658 2422 l 3538 2452 l cp 120 | eoclip 121 | n 3300 2422 m 122 | 3675 2422 l gs col0 s gr gr 123 | 124 | % arrowhead 125 | n 3538 2452 m 3658 2422 l 3538 2392 l col0 s 126 | % Polyline 127 | gs clippath 128 | 3690 2752 m 3690 2692 l 3538 2692 l 3658 2722 l 3538 2752 l cp 129 | eoclip 130 | n 3300 2722 m 131 | 3675 2722 l gs col0 s gr gr 132 | 133 | % arrowhead 134 | n 3538 2752 m 3658 2722 l 3538 2692 l col0 s 135 | % Polyline 136 | gs clippath 137 | 3690 2152 m 3690 2092 l 3538 2092 l 3658 2122 l 3538 2152 l cp 138 | eoclip 139 | n 3300 2122 m 140 | 3675 2122 l gs col0 s gr gr 141 | 142 | % arrowhead 143 | n 3538 2152 m 3658 2122 l 3538 2092 l col0 s 144 | % Polyline 145 | gs clippath 146 | 3690 3030 m 3690 2970 l 3538 2970 l 3658 3000 l 3538 3030 l cp 147 | eoclip 148 | n 3300 3000 m 149 | 3675 3000 l gs col0 s gr gr 150 | 151 | % arrowhead 152 | n 3538 3030 m 3658 3000 l 3538 2970 l col0 s 153 | /Helvetica ff 165.00 scf sf 154 | 3225 1575 m 155 | gs 1 -1 sc (\('Cleese', 'John'\)) dup sw pop neg 0 rm col0 sh gr 156 | /Helvetica ff 165.00 scf sf 157 | 3750 1575 m 158 | gs 1 -1 sc ('08700 100 222') col0 sh gr 159 | /Helvetica ff 165.00 scf sf 160 | 3750 1875 m 161 | gs 1 -1 sc ('08700 100 222') col0 sh gr 162 | /Helvetica ff 165.00 scf sf 163 | 3750 2175 m 164 | gs 1 -1 sc ('08700 100 222') col0 sh gr 165 | /Helvetica ff 165.00 scf sf 166 | 3750 2475 m 167 | gs 1 -1 sc ('08700 100 222') col0 sh gr 168 | /Helvetica ff 165.00 scf sf 169 | 3750 2775 m 170 | gs 1 -1 sc ('08700 100 222') col0 sh gr 171 | /Helvetica ff 165.00 scf sf 172 | 3225 1875 m 173 | gs 1 -1 sc (\('Chapman', 'Graham'\)) dup sw pop neg 0 rm col0 sh gr 174 | /Helvetica ff 165.00 scf sf 175 | 3225 2175 m 176 | gs 1 -1 sc (\('Idle', 'Eric'\)) dup sw pop neg 0 rm col0 sh gr 177 | /Helvetica ff 165.00 scf sf 178 | 3225 2775 m 179 | gs 1 -1 sc (\('Jones', 'Terry'\)) dup sw pop neg 0 rm col0 sh gr 180 | /Helvetica ff 165.00 scf sf 181 | 3225 2475 m 182 | gs 1 -1 sc (\('Gilliam', 'Terry'\)) dup sw pop neg 0 rm col0 sh gr 183 | /Helvetica ff 165.00 scf sf 184 | 3225 3075 m 185 | gs 1 -1 sc (\('Palin', 'Michael'\)) dup sw pop neg 0 rm col0 sh gr 186 | /Helvetica ff 165.00 scf sf 187 | 3750 3075 m 188 | gs 1 -1 sc ('08700 100 222') col0 sh gr 189 | /Helvetica ff 165.00 scf sf 190 | 1275 1275 m 191 | gs 1 -1 sc (dict) col0 sh gr 192 | % here ends figure; 193 | $F2psEnd 194 | rs 195 | showpage 196 | -------------------------------------------------------------------------------- /figs/dict2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 3300 1822 3675 1822 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 3300 1522 3675 1522 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 3300 2422 3675 2422 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 3300 2722 3675 2722 22 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 23 | 0 0 1.00 60.00 120.00 24 | 3300 2122 3675 2122 25 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 26 | 0 0 1.00 60.00 120.00 27 | 3300 3000 3675 3000 28 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 29 | 1275 1350 5100 1350 5100 3225 1275 3225 1275 1350 30 | 4 2 0 50 0 16 11 0.0000 4 150 1125 3225 1575 ('Cleese', 'John')\001 31 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 1575 '08700 100 222'\001 32 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 1875 '08700 100 222'\001 33 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 2175 '08700 100 222'\001 34 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 2475 '08700 100 222'\001 35 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 2775 '08700 100 222'\001 36 | 4 2 0 50 0 16 11 0.0000 4 150 1530 3225 1875 ('Chapman', 'Graham')\001 37 | 4 2 0 50 0 16 11 0.0000 4 150 840 3225 2175 ('Idle', 'Eric')\001 38 | 4 2 0 50 0 16 11 0.0000 4 150 1080 3225 2775 ('Jones', 'Terry')\001 39 | 4 2 0 50 0 16 11 0.0000 4 150 1110 3225 2475 ('Gilliam', 'Terry')\001 40 | 4 2 0 50 0 16 11 0.0000 4 150 1170 3225 3075 ('Palin', 'Michael')\001 41 | 4 0 0 50 0 16 11 0.0000 4 120 1140 3750 3075 '08700 100 222'\001 42 | 4 0 0 50 0 16 11 0.0000 4 120 255 1275 1275 dict\001 43 | -------------------------------------------------------------------------------- /figs/dict2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/dict2.pdf -------------------------------------------------------------------------------- /figs/fibonacci.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 3450 450 4350 1125 11 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 12 | 3450 450 4350 450 4350 1125 3450 1125 3450 450 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 3705 899 4080 899 16 | 4 0 0 50 0 16 11 0.0000 4 120 615 3555 705 fibonacci\001 17 | 4 2 0 50 0 16 11 0.0000 4 90 90 3630 952 n\001 18 | 4 0 0 50 0 16 11 0.0000 4 120 90 4155 952 4\001 19 | -6 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 3450 1125 3150 1425 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 2400 2100 2100 2400 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 1800 3075 1500 3375 29 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 30 | 0 0 1.00 60.00 120.00 31 | 4800 2100 4500 2400 32 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 33 | 0 0 1.00 60.00 120.00 34 | 4350 1125 4650 1425 35 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 36 | 0 0 1.00 60.00 120.00 37 | 3000 2100 3300 2400 38 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 39 | 0 0 1.00 60.00 120.00 40 | 2400 3075 2700 3375 41 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 42 | 0 0 1.00 60.00 120.00 43 | 5400 2100 5700 2400 44 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 45 | 2250 1425 3150 1425 3150 2100 2250 2100 2250 1425 46 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 47 | 0 0 1.00 60.00 120.00 48 | 2505 1874 2880 1874 49 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 50 | 4650 1425 5550 1425 5550 2100 4650 2100 4650 1425 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 4905 1874 5280 1874 54 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 55 | 5250 2400 6150 2400 6150 3075 5250 3075 5250 2400 56 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 57 | 0 0 1.00 60.00 120.00 58 | 5505 2849 5880 2849 59 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 60 | 4050 2400 4950 2400 4950 3075 4050 3075 4050 2400 61 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 62 | 0 0 1.00 60.00 120.00 63 | 4305 2849 4680 2849 64 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 65 | 2850 2400 3750 2400 3750 3075 2850 3075 2850 2400 66 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 67 | 0 0 1.00 60.00 120.00 68 | 3105 2849 3480 2849 69 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 70 | 1650 2400 2550 2400 2550 3075 1650 3075 1650 2400 71 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 72 | 0 0 1.00 60.00 120.00 73 | 1905 2849 2280 2849 74 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 75 | 2250 3375 3150 3375 3150 4050 2250 4050 2250 3375 76 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 77 | 0 0 1.00 60.00 120.00 78 | 2505 3824 2880 3824 79 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 80 | 1050 3375 1950 3375 1950 4050 1050 4050 1050 3375 81 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 82 | 0 0 1.00 60.00 120.00 83 | 1305 3824 1680 3824 84 | 4 0 0 50 0 16 11 0.0000 4 120 615 2355 1680 fibonacci\001 85 | 4 2 0 50 0 16 11 0.0000 4 90 90 2430 1927 n\001 86 | 4 0 0 50 0 16 11 0.0000 4 120 90 2955 1927 3\001 87 | 4 0 0 50 0 16 11 0.0000 4 120 615 4755 1680 fibonacci\001 88 | 4 2 0 50 0 16 11 0.0000 4 90 90 4830 1927 n\001 89 | 4 0 0 50 0 16 11 0.0000 4 120 90 5355 1927 2\001 90 | 4 0 0 50 0 16 11 0.0000 4 120 615 5355 2655 fibonacci\001 91 | 4 2 0 50 0 16 11 0.0000 4 90 90 5430 2902 n\001 92 | 4 0 0 50 0 16 11 0.0000 4 120 90 5955 2902 0\001 93 | 4 0 0 50 0 16 11 0.0000 4 120 615 4155 2655 fibonacci\001 94 | 4 2 0 50 0 16 11 0.0000 4 90 90 4230 2902 n\001 95 | 4 0 0 50 0 16 11 0.0000 4 120 90 4755 2902 1\001 96 | 4 0 0 50 0 16 11 0.0000 4 120 615 2955 2655 fibonacci\001 97 | 4 2 0 50 0 16 11 0.0000 4 90 90 3030 2902 n\001 98 | 4 0 0 50 0 16 11 0.0000 4 120 90 3555 2902 1\001 99 | 4 0 0 50 0 16 11 0.0000 4 120 615 1755 2655 fibonacci\001 100 | 4 2 0 50 0 16 11 0.0000 4 90 90 1830 2902 n\001 101 | 4 0 0 50 0 16 11 0.0000 4 120 90 2355 2902 2\001 102 | 4 0 0 50 0 16 11 0.0000 4 120 615 2355 3630 fibonacci\001 103 | 4 2 0 50 0 16 11 0.0000 4 90 90 2430 3877 n\001 104 | 4 0 0 50 0 16 11 0.0000 4 120 90 2955 3877 0\001 105 | 4 0 0 50 0 16 11 0.0000 4 120 615 1155 3630 fibonacci\001 106 | 4 2 0 50 0 16 11 0.0000 4 90 90 1230 3877 n\001 107 | 4 0 0 50 0 16 11 0.0000 4 120 90 1755 3877 1\001 108 | -------------------------------------------------------------------------------- /figs/fibonacci.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/fibonacci.pdf -------------------------------------------------------------------------------- /figs/flower.test.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/flower.test.pdf -------------------------------------------------------------------------------- /figs/flowers.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/flowers.pdf -------------------------------------------------------------------------------- /figs/koch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/koch.pdf -------------------------------------------------------------------------------- /figs/list1.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-2.0 EPSF-2.0 2 | %%Title: list1.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5-alpha7 4 | %%CreationDate: Thu Jan 3 09:32:30 2008 5 | %%For: downey@rocky (Allen Downey,,,) 6 | %%BoundingBox: 0 0 218 42 7 | %Magnification: 1.0000 8 | %%EndComments 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | save 48 | newpath 0 42 moveto 0 0 lineto 218 0 lineto 218 42 lineto closepath clip newpath 49 | -107.3 99.7 translate 50 | 1 -1 scale 51 | 52 | /cp {closepath} bind def 53 | /ef {eofill} bind def 54 | /gr {grestore} bind def 55 | /gs {gsave} bind def 56 | /sa {save} bind def 57 | /rs {restore} bind def 58 | /l {lineto} bind def 59 | /m {moveto} bind def 60 | /rm {rmoveto} bind def 61 | /n {newpath} bind def 62 | /s {stroke} bind def 63 | /sh {show} bind def 64 | /slc {setlinecap} bind def 65 | /slj {setlinejoin} bind def 66 | /slw {setlinewidth} bind def 67 | /srgb {setrgbcolor} bind def 68 | /rot {rotate} bind def 69 | /sc {scale} bind def 70 | /sd {setdash} bind def 71 | /ff {findfont} bind def 72 | /sf {setfont} bind def 73 | /scf {scalefont} bind def 74 | /sw {stringwidth} bind def 75 | /tr {translate} bind def 76 | /tnt {dup dup currentrgbcolor 77 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 78 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 79 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 80 | bind def 81 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 82 | 4 -2 roll mul srgb} bind def 83 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 84 | /$F2psEnd {$F2psEnteredState restore end} def 85 | 86 | $F2psBegin 87 | 10 setmiterlimit 88 | 0 slj 0 slc 89 | 0.06000 0.06000 sc 90 | % 91 | % Fig objects follow 92 | % 93 | % 94 | % here starts figure with depth 51 95 | % Polyline 96 | 0 slj 97 | 0 slc 98 | 7.500 slw 99 | n 3825 975 m 5400 975 l 5400 1650 l 3825 1650 l 100 | cp gs col7 0.90 shd ef gr gs col0 s gr 101 | % Polyline 102 | n 1800 975 m 3375 975 l 3375 1650 l 1800 1650 l 103 | cp gs col7 0.90 shd ef gr gs col0 s gr 104 | % Polyline 105 | gs clippath 106 | 4375 1413 m 4522 1375 l 4507 1317 l 4360 1355 l 4360 1355 l 4484 1354 l 4375 1413 l cp 107 | eoclip 108 | n 4125 1447 m 109 | 4500 1350 l gs col0 s gr gr 110 | 111 | % arrowhead 112 | n 4375 1413 m 4484 1354 l 4360 1355 l col0 s 113 | % Polyline 114 | gs clippath 115 | 4360 1259 m 4504 1308 l 4523 1251 l 4380 1202 l 4380 1202 l 4484 1270 l 4360 1259 l cp 116 | eoclip 117 | n 4125 1147 m 118 | 4500 1275 l gs col0 s gr gr 119 | 120 | % arrowhead 121 | n 4360 1259 m 4484 1270 l 4380 1202 l col0 s 122 | % Polyline 123 | gs clippath 124 | 2338 1477 m 2490 1477 l 2490 1417 l 2338 1417 l 2338 1417 l 2458 1447 l 2338 1477 l cp 125 | eoclip 126 | n 2100 1447 m 127 | 2475 1447 l gs col0 s gr gr 128 | 129 | % arrowhead 130 | n 2338 1477 m 2458 1447 l 2338 1417 l col0 s 131 | % Polyline 132 | gs clippath 133 | 2338 1177 m 2490 1177 l 2490 1117 l 2338 1117 l 2338 1117 l 2458 1147 l 2338 1177 l cp 134 | eoclip 135 | n 2100 1147 m 136 | 2475 1147 l gs col0 s gr gr 137 | 138 | % arrowhead 139 | n 2338 1177 m 2458 1147 l 2338 1117 l col0 s 140 | /Helvetica ff 183.33 scf sf 141 | 4050 1200 m 142 | gs 1 -1 sc (a) dup sw pop neg 0 rm col0 sh gr 143 | /Helvetica ff 183.33 scf sf 144 | 4050 1500 m 145 | gs 1 -1 sc (b) dup sw pop neg 0 rm col0 sh gr 146 | /Helvetica ff 183.33 scf sf 147 | 4575 1350 m 148 | gs 1 -1 sc ('banana') col0 sh gr 149 | /Helvetica ff 183.33 scf sf 150 | 2025 1200 m 151 | gs 1 -1 sc (a) dup sw pop neg 0 rm col0 sh gr 152 | /Helvetica ff 183.33 scf sf 153 | 2025 1500 m 154 | gs 1 -1 sc (b) dup sw pop neg 0 rm col0 sh gr 155 | /Helvetica ff 183.33 scf sf 156 | 2550 1200 m 157 | gs 1 -1 sc ('banana') col0 sh gr 158 | /Helvetica ff 183.33 scf sf 159 | 2550 1500 m 160 | gs 1 -1 sc ('banana') col0 sh gr 161 | % here ends figure; 162 | $F2psEnd 163 | rs 164 | showpage 165 | %%Trailer 166 | %EOF 167 | -------------------------------------------------------------------------------- /figs/list1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5-alpha5 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 4125 1447 4500 1350 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 4125 1147 4500 1275 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 3825 975 5400 975 5400 1650 3825 1650 3825 975 18 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 19 | 0 0 1.00 60.00 120.00 20 | 2100 1447 2475 1447 21 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 22 | 0 0 1.00 60.00 120.00 23 | 2100 1147 2475 1147 24 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 25 | 1800 975 3375 975 3375 1650 1800 1650 1800 975 26 | 4 2 0 50 0 16 11 0.0000 4 105 105 4050 1200 a\001 27 | 4 2 0 50 0 16 11 0.0000 4 135 105 4050 1500 b\001 28 | 4 0 0 50 0 16 11 0.0000 4 135 720 4575 1350 'banana'\001 29 | 4 2 0 50 0 16 11 0.0000 4 105 105 2025 1200 a\001 30 | 4 2 0 50 0 16 11 0.0000 4 135 105 2025 1500 b\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 720 2550 1200 'banana'\001 32 | 4 0 0 50 0 16 11 0.0000 4 135 720 2550 1500 'banana'\001 33 | -------------------------------------------------------------------------------- /figs/list1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/list1.pdf -------------------------------------------------------------------------------- /figs/list2.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-2.0 EPSF-2.0 2 | %%Title: list2.eps 3 | %%Creator: fig2dev Version 3.2 Patchlevel 3c 4 | %%CreationDate: Thu Dec 6 09:32:48 2001 5 | %%For: downey@rocky.wellesley.edu (Allen B. Downey) 6 | %%BoundingBox: 0 0 97 43 7 | %%Magnification: 1.0000 8 | %%EndComments 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | save 48 | newpath 0 43 moveto 0 0 lineto 97 0 lineto 97 43 lineto closepath clip newpath 49 | -107.0 100.0 translate 50 | 1 -1 scale 51 | 52 | /cp {closepath} bind def 53 | /ef {eofill} bind def 54 | /gr {grestore} bind def 55 | /gs {gsave} bind def 56 | /sa {save} bind def 57 | /rs {restore} bind def 58 | /l {lineto} bind def 59 | /m {moveto} bind def 60 | /rm {rmoveto} bind def 61 | /n {newpath} bind def 62 | /s {stroke} bind def 63 | /sh {show} bind def 64 | /slc {setlinecap} bind def 65 | /slj {setlinejoin} bind def 66 | /slw {setlinewidth} bind def 67 | /srgb {setrgbcolor} bind def 68 | /rot {rotate} bind def 69 | /sc {scale} bind def 70 | /sd {setdash} bind def 71 | /ff {findfont} bind def 72 | /sf {setfont} bind def 73 | /scf {scalefont} bind def 74 | /sw {stringwidth} bind def 75 | /tr {translate} bind def 76 | /tnt {dup dup currentrgbcolor 77 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 78 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 79 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 80 | bind def 81 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 82 | 4 -2 roll mul srgb} bind def 83 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 84 | /$F2psEnd {$F2psEnteredState restore end} def 85 | 86 | $F2psBegin 87 | %%Page: 1 1 88 | 10 setmiterlimit 89 | 0.06000 0.06000 sc 90 | % 91 | % Fig objects follow 92 | % 93 | % Polyline 94 | 7.500 slw 95 | n 1800 975 m 3375 975 l 3375 1650 l 1800 1650 l 96 | cp gs col7 0.90 shd ef gr gs col0 s gr 97 | % Polyline 98 | gs clippath 99 | 2490 1477 m 2490 1417 l 2338 1417 l 2458 1447 l 2338 1477 l cp 100 | eoclip 101 | n 2100 1447 m 102 | 2475 1447 l gs col0 s gr gr 103 | 104 | % arrowhead 105 | n 2338 1477 m 2458 1447 l 2338 1417 l col0 s 106 | % Polyline 107 | gs clippath 108 | 2490 1177 m 2490 1117 l 2338 1117 l 2458 1147 l 2338 1177 l cp 109 | eoclip 110 | n 2100 1147 m 111 | 2475 1147 l gs col0 s gr gr 112 | 113 | % arrowhead 114 | n 2338 1177 m 2458 1147 l 2338 1117 l col0 s 115 | /Helvetica ff 165.00 scf sf 116 | 2025 1200 m 117 | gs 1 -1 sc (a) dup sw pop neg 0 rm col0 sh gr 118 | /Helvetica ff 165.00 scf sf 119 | 2025 1500 m 120 | gs 1 -1 sc (b) dup sw pop neg 0 rm col0 sh gr 121 | /Helvetica ff 165.00 scf sf 122 | 2550 1200 m 123 | gs 1 -1 sc ([ 1, 2, 3 ]) col0 sh gr 124 | /Helvetica ff 165.00 scf sf 125 | 2550 1500 m 126 | gs 1 -1 sc ([ 1, 2, 3 ]) col0 sh gr 127 | $F2psEnd 128 | rs 129 | -------------------------------------------------------------------------------- /figs/list2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1147 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1800 975 3375 975 3375 1650 1800 1650 1800 975 18 | 4 2 0 50 0 16 11 0.0000 4 90 75 2025 1200 a\001 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 b\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 630 2550 1200 [ 1, 2, 3 ]\001 21 | 4 0 0 50 0 16 11 0.0000 4 150 630 2550 1500 [ 1, 2, 3 ]\001 22 | -------------------------------------------------------------------------------- /figs/list2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/list2.pdf -------------------------------------------------------------------------------- /figs/list3.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-2.0 EPSF-2.0 2 | %%Title: list3.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5a 4 | %%CreationDate: Tue May 22 16:12:59 2012 5 | %%BoundingBox: 0 0 96 42 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 42 moveto 0 0 lineto 96 0 lineto 96 42 lineto closepath clip newpath 85 | -107.3 99.7 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1800 975 m 3375 975 l 3375 1650 l 1800 1650 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | gs clippath 111 | 2350 1413 m 2497 1375 l 2482 1317 l 2335 1355 l 2335 1355 l 2459 1354 l 2350 1413 l cp 112 | eoclip 113 | n 2100 1447 m 114 | 2475 1350 l gs col0 s gr gr 115 | 116 | % arrowhead 117 | n 2350 1413 m 2459 1354 l 2335 1355 l col0 s 118 | % Polyline 119 | gs clippath 120 | 2335 1259 m 2479 1308 l 2498 1251 l 2355 1202 l 2355 1202 l 2459 1270 l 2335 1259 l cp 121 | eoclip 122 | n 2100 1147 m 123 | 2475 1275 l gs col0 s gr gr 124 | 125 | % arrowhead 126 | n 2335 1259 m 2459 1270 l 2355 1202 l col0 s 127 | /Helvetica ff 183.33 scf sf 128 | 2025 1200 m 129 | gs 1 -1 sc (a) dup sw pop neg 0 rm col0 sh gr 130 | /Helvetica ff 183.33 scf sf 131 | 2025 1500 m 132 | gs 1 -1 sc (b) dup sw pop neg 0 rm col0 sh gr 133 | /Helvetica ff 183.33 scf sf 134 | 2550 1350 m 135 | gs 1 -1 sc ([ 1, 2, 3 ]) col0 sh gr 136 | % here ends figure; 137 | pagefooter 138 | showpage 139 | %%Trailer 140 | %EOF 141 | -------------------------------------------------------------------------------- /figs/list3.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1350 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1275 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1800 975 3375 975 3375 1650 1800 1650 1800 975 18 | 4 2 0 50 0 16 11 0.0000 4 90 75 2025 1200 a\001 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 b\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 630 2550 1350 [ 1, 2, 3 ]\001 21 | -------------------------------------------------------------------------------- /figs/list3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/list3.pdf -------------------------------------------------------------------------------- /figs/liststate.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 2497 2475 2497 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 1200 2475 1575 2475 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2100 2850 2475 3075 19 | 2 1 2 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2 20 | 2100 2797 2475 2797 21 | 2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 22 | 2550 2700 2850 2850 23 | 2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 24 | 2850 2700 2550 2850 25 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 26 | 1650 2325 3225 2325 3225 3300 1650 3300 1650 2325 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 1200 3825 1575 3825 30 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 31 | 1650 3675 1950 3675 1950 3975 1650 3975 1650 3675 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 1650 975 3675 975 3675 1950 1650 1950 1650 975 34 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 35 | 0 0 1.00 60.00 120.00 36 | 2100 1447 2475 1447 37 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 38 | 0 0 1.00 60.00 120.00 39 | 2100 1747 2475 1747 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 2100 1147 2475 1147 43 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 44 | 0 0 1.00 60.00 120.00 45 | 1200 1125 1575 1125 46 | 2 2 0 1 7 7 50 -1 -1 0.000 0 0 -1 0 0 5 47 | 225 675 3825 675 3825 4050 225 4050 225 675 48 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2550 0\001 49 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2850 1\001 50 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 2250 list\001 51 | 4 2 0 50 0 16 11 0.0000 4 120 540 1125 2550 numeri\001 52 | 4 0 0 50 0 16 11 0.0000 4 135 180 2550 2550 42\001 53 | 4 0 0 50 0 16 11 0.0000 4 135 270 2550 2850 123\001 54 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 3150 5\001 55 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 3600 list\001 56 | 4 2 0 50 0 16 11 0.0000 4 120 450 1125 3900 vuota\001 57 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1200 0\001 58 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1500 1\001 59 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1800 2\001 60 | 4 0 0 50 0 16 11 0.0000 4 135 810 2550 1200 'Cheddar'\001 61 | 4 0 0 50 0 16 11 0.0000 4 135 540 2550 1500 'Edam'\001 62 | 4 0 0 50 0 16 11 0.0000 4 135 630 2550 1800 'Gouda'\001 63 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 900 list\001 64 | 4 2 0 50 0 16 11 0.0000 4 165 720 1125 1200 formaggi\001 65 | -------------------------------------------------------------------------------- /figs/liststate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/liststate.pdf -------------------------------------------------------------------------------- /figs/listsum1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/listsum1.pdf -------------------------------------------------------------------------------- /figs/listsum2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/listsum2.pdf -------------------------------------------------------------------------------- /figs/loop.py: -------------------------------------------------------------------------------- 1 | import sys, os 2 | from glob import glob 3 | 4 | def pipe(cmd): 5 | fp = os.popen(cmd) 6 | res = fp.read() 7 | stat = fp.close() 8 | return res, stat 9 | 10 | def main(script, files='*.eps'): 11 | for filename in sorted(glob(files)): 12 | destination = '.'.join(filename.split('.')[:-1]) + '.pdf' 13 | cmd = 'convert %s %s' % (filename, destination) 14 | print cmd 15 | 16 | res, stat = pipe(cmd) 17 | print res, stat 18 | 19 | if __name__ == '__main__': 20 | main(*sys.argv) 21 | -------------------------------------------------------------------------------- /figs/loop.py~: -------------------------------------------------------------------------------- 1 | import sys, os 2 | from glob import glob 3 | 4 | def pipe(cmd): 5 | fp = os.popen(cmd) 6 | res = fp.read() 7 | stat = fp.close() 8 | return res, stat 9 | 10 | def main(script, files='*.pdf'): 11 | for file in glob(files): 12 | cmd = 'pdf2ps %s temp.ps; lprdup temp.ps' % (file,) 13 | print cmd 14 | 15 | res, stat = pipe(cmd) 16 | print res, stat 17 | 18 | if __name__ == '__main__': 19 | main(*sys.argv) 20 | -------------------------------------------------------------------------------- /figs/pies.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/pies.pdf -------------------------------------------------------------------------------- /figs/point.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: point.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 21:53:24 2015 5 | %%BoundingBox: 0 0 124 55 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 55 moveto 0 0 lineto 124 0 lineto 124 55 lineto closepath clip newpath 85 | -52.4 99.7 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1800 975 m 2925 975 l 2925 1650 l 1800 1650 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | gs clippath 111 | 2338 1477 m 2490 1477 l 2490 1417 l 2338 1417 l 2338 1417 l 2458 1447 l 2338 1477 l cp 112 | eoclip 113 | n 2100 1447 m 114 | 2475 1447 l gs col0 s gr gr 115 | 116 | % arrowhead 117 | n 2338 1477 m 2458 1447 l 2338 1417 l col0 s 118 | % Polyline 119 | gs clippath 120 | 2338 1177 m 2490 1177 l 2490 1117 l 2338 1117 l 2338 1117 l 2458 1147 l 2338 1177 l cp 121 | eoclip 122 | n 2100 1147 m 123 | 2475 1147 l gs col0 s gr gr 124 | 125 | % arrowhead 126 | n 2338 1177 m 2458 1147 l 2338 1117 l col0 s 127 | % Polyline 128 | gs clippath 129 | 1663 1147 m 1815 1147 l 1815 1087 l 1663 1087 l 1663 1087 l 1783 1117 l 1663 1147 l cp 130 | eoclip 131 | n 1425 1117 m 132 | 1800 1117 l gs col0 s gr gr 133 | 134 | % arrowhead 135 | n 1663 1147 m 1783 1117 l 1663 1087 l col0 s 136 | /Helvetica ff 183.33 scf sf 137 | 2025 1200 m 138 | gs 1 -1 sc (x) dup sw pop neg 0 rm col0 sh gr 139 | /Helvetica ff 183.33 scf sf 140 | 2025 1500 m 141 | gs 1 -1 sc (y) dup sw pop neg 0 rm col0 sh gr 142 | /Helvetica ff 183.33 scf sf 143 | 2550 1200 m 144 | gs 1 -1 sc (3.0) col0 sh gr 145 | /Helvetica ff 183.33 scf sf 146 | 2550 1500 m 147 | gs 1 -1 sc (4.0) col0 sh gr 148 | /Helvetica ff 183.33 scf sf 149 | 1350 1170 m 150 | gs 1 -1 sc (nuovo) dup sw pop neg 0 rm col0 sh gr 151 | /Helvetica ff 183.33 scf sf 152 | 1800 900 m 153 | gs 1 -1 sc (Punto) col0 sh gr 154 | % here ends figure; 155 | pagefooter 156 | showpage 157 | %%Trailer 158 | %EOF 159 | -------------------------------------------------------------------------------- /figs/point.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1147 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 1425 1117 1800 1117 19 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 20 | 1800 975 2925 975 2925 1650 1800 1650 1800 975 21 | 4 2 0 50 0 16 11 0.0000 4 90 90 2025 1200 x\001 22 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 y\001 23 | 4 0 0 50 0 16 11 0.0000 4 150 270 2550 1200 3.0\001 24 | 4 0 0 50 0 16 11 0.0000 4 150 270 2550 1500 4.0\001 25 | 4 2 0 50 0 16 11 0.0000 4 90 450 1350 1170 nuovo\001 26 | 4 0 0 50 0 16 11 0.0000 4 135 450 1800 900 Punto\001 27 | -------------------------------------------------------------------------------- /figs/point.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/point.pdf -------------------------------------------------------------------------------- /figs/rectangle.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 3750 1350 4725 1950 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 3975 1822 4350 1822 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 3975 1522 4350 1522 17 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 18 | 3750 1350 4725 1350 4725 1950 3750 1950 3750 1350 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 3900 1875 y\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 270 4425 1575 0.0\001 21 | 4 2 0 50 0 16 11 0.0000 4 90 90 3900 1575 x\001 22 | 4 0 0 50 0 16 11 0.0000 4 150 270 4425 1875 0.0\001 23 | -6 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 1028 1140 1413 1140 27 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 28 | 1425 975 3480 975 3480 1950 1425 1950 1425 975 29 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 30 | 0 0 1.00 60.00 120.00 31 | 2475 1125 2850 1125 32 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 33 | 0 0 1.00 60.00 120.00 34 | 2475 1425 2850 1425 35 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 36 | 0 0 1.00 60.00 120.00 37 | 2475 1726 3745 1724 38 | 4 0 0 50 0 16 11 0.0000 4 165 900 1500 900 Rettangolo\001 39 | 4 2 0 50 0 16 11 0.0000 4 135 270 975 1200 box\001 40 | 4 0 0 50 0 16 11 0.0000 4 135 450 3750 1275 Punto\001 41 | 4 0 0 50 0 16 11 0.0000 4 150 450 2925 1500 200.0\001 42 | 4 0 0 50 0 16 11 0.0000 4 150 450 2925 1200 100.0\001 43 | 4 2 0 50 0 16 11 0.0000 4 135 630 2400 1500 altezza\001 44 | 4 2 0 50 0 16 11 0.0000 4 165 540 2400 1800 angolo\001 45 | 4 2 0 50 0 16 11 0.0000 4 165 810 2400 1200 larghezza\001 46 | -------------------------------------------------------------------------------- /figs/rectangle.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/rectangle.pdf -------------------------------------------------------------------------------- /figs/rectangle2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 3300 1350 4275 1950 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 3525 1822 3900 1822 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 3525 1522 3900 1522 17 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 18 | 3300 1350 4275 1350 4275 1950 3300 1950 3300 1350 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 3450 1875 y\001 20 | 4 0 0 50 0 16 11 0.0000 4 150 270 3975 1575 0.0\001 21 | 4 2 0 50 0 16 11 0.0000 4 90 90 3450 1575 x\001 22 | 4 0 0 50 0 16 11 0.0000 4 150 270 3975 1875 0.0\001 23 | -6 24 | 6 2100 1050 2475 1500 25 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 26 | 0 0 1.00 60.00 120.00 27 | 2100 1447 2475 1447 28 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 29 | 0 0 1.00 60.00 120.00 30 | 2100 1147 2475 1147 31 | -6 32 | 6 5025 1050 5400 1500 33 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 34 | 0 0 1.00 60.00 120.00 35 | 5400 1447 5025 1447 36 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 37 | 0 0 1.00 60.00 120.00 38 | 5400 1147 5025 1147 39 | -6 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 2100 1747 3295 1745 43 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 44 | 0 0 1.00 60.00 120.00 45 | 5467 1757 4272 1755 46 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 47 | 0 0 1.00 60.00 120.00 48 | 705 1125 1065 1125 49 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 50 | 1125 975 3075 975 3075 1950 1125 1950 1125 975 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 6810 1200 6465 1200 54 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 55 | 4500 975 6450 975 6450 1950 4500 1950 4500 975 56 | 4 2 0 50 0 16 11 0.0000 4 165 810 2025 1200 larghezza\001 57 | 4 2 0 50 0 16 11 0.0000 4 135 630 2025 1500 altezza\001 58 | 4 0 0 50 0 16 11 0.0000 4 150 450 2550 1200 100.0\001 59 | 4 2 0 50 0 16 11 0.0000 4 165 540 2025 1800 angolo\001 60 | 4 0 0 50 0 16 11 0.0000 4 150 450 2550 1500 200.0\001 61 | 4 0 0 50 0 16 11 0.0000 4 150 450 4575 1200 100.0\001 62 | 4 0 0 50 0 16 11 0.0000 4 150 450 4575 1500 200.0\001 63 | 4 0 0 50 0 16 11 0.0000 4 165 810 5475 1200 larghezza\001 64 | 4 0 0 50 0 16 11 0.0000 4 165 540 5475 1800 angolo\001 65 | 4 2 0 50 0 16 11 0.0000 4 135 270 675 1200 box\001 66 | 4 0 0 50 0 16 11 0.0000 4 135 630 5475 1500 altezza\001 67 | 4 0 0 50 0 16 11 0.0000 4 135 360 6825 1275 box2\001 68 | -------------------------------------------------------------------------------- /figs/rectangle2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/rectangle2.pdf -------------------------------------------------------------------------------- /figs/stack.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 2100 1897 2475 2647 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 2100 2272 2475 2272 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 2100 2572 2475 2572 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 2100 1972 2475 1972 20 | -6 21 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 22 | 0 0 1.00 60.00 120.00 23 | 2100 1447 2475 1447 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 2100 1147 2475 1147 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 2092 3097 2467 3097 30 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 31 | 1424 2925 4950 2925 4950 3300 1424 3300 1424 2925 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 1425 1800 4950 1800 4950 2775 1425 2775 1425 1800 34 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 35 | 1425 975 4950 975 4950 1650 1425 1650 1425 975 36 | 4 2 0 50 0 16 11 0.0000 4 165 450 2025 1200 riga1\001 37 | 4 2 0 50 0 16 11 0.0000 4 165 450 2025 1500 riga2\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 540 2025 2025 parte1\001 40 | 4 2 0 50 0 16 11 0.0000 4 165 540 2025 2325 parte2\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 720 1275 1350 __main__\001 49 | 4 2 0 50 0 16 11 0.0000 4 135 810 1275 2325 cat2volte\001 50 | 4 2 0 50 0 16 11 0.0000 4 165 1080 1275 3150 stampa2volte\001 51 | -------------------------------------------------------------------------------- /figs/stack.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/stack.pdf -------------------------------------------------------------------------------- /figs/stack2.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: stack2.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 22:00:01 2015 5 | %%BoundingBox: 0 0 177 150 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 150 moveto 0 0 lineto 177 0 lineto 177 150 lineto closepath clip newpath 85 | -3.9 176.2 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1800 450 m 3000 450 l 3000 825 l 1800 825 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | n 1800 975 m 3000 975 l 3000 1350 l 1800 1350 l 111 | cp gs col7 0.90 shd ef gr gs col0 s gr 112 | % Polyline 113 | n 1800 1500 m 3000 1500 l 3000 1875 l 1800 1875 l 114 | cp gs col7 0.90 shd ef gr gs col0 s gr 115 | % Polyline 116 | n 1800 2025 m 3000 2025 l 3000 2400 l 1800 2400 l 117 | cp gs col7 0.90 shd ef gr gs col0 s gr 118 | % Polyline 119 | n 1800 2550 m 3000 2550 l 3000 2925 l 1800 2925 l 120 | cp gs col7 0.90 shd ef gr gs col0 s gr 121 | % Polyline 122 | gs clippath 123 | 2413 1177 m 2565 1177 l 2565 1117 l 2413 1117 l 2413 1117 l 2533 1147 l 2413 1177 l cp 124 | eoclip 125 | n 2175 1147 m 126 | 2550 1147 l gs col0 s gr gr 127 | 128 | % arrowhead 129 | n 2413 1177 m 2533 1147 l 2413 1117 l col0 s 130 | % Polyline 131 | gs clippath 132 | 2413 1702 m 2565 1702 l 2565 1642 l 2413 1642 l 2413 1642 l 2533 1672 l 2413 1702 l cp 133 | eoclip 134 | n 2175 1672 m 135 | 2550 1672 l gs col0 s gr gr 136 | 137 | % arrowhead 138 | n 2413 1702 m 2533 1672 l 2413 1642 l col0 s 139 | % Polyline 140 | gs clippath 141 | 2413 2227 m 2565 2227 l 2565 2167 l 2413 2167 l 2413 2167 l 2533 2197 l 2413 2227 l cp 142 | eoclip 143 | n 2175 2197 m 144 | 2550 2197 l gs col0 s gr gr 145 | 146 | % arrowhead 147 | n 2413 2227 m 2533 2197 l 2413 2167 l col0 s 148 | % Polyline 149 | gs clippath 150 | 2413 2752 m 2565 2752 l 2565 2692 l 2413 2692 l 2413 2692 l 2533 2722 l 2413 2752 l cp 151 | eoclip 152 | n 2175 2722 m 153 | 2550 2722 l gs col0 s gr gr 154 | 155 | % arrowhead 156 | n 2413 2752 m 2533 2722 l 2413 2692 l col0 s 157 | /Helvetica ff 183.33 scf sf 158 | 1650 675 m 159 | gs 1 -1 sc (__main__) dup sw pop neg 0 rm col0 sh gr 160 | /Helvetica ff 183.33 scf sf 161 | 1650 1200 m 162 | gs 1 -1 sc (contoallarovescia) dup sw pop neg 0 rm col0 sh gr 163 | /Helvetica ff 183.33 scf sf 164 | 1650 1725 m 165 | gs 1 -1 sc (contoallarovescia) dup sw pop neg 0 rm col0 sh gr 166 | /Helvetica ff 183.33 scf sf 167 | 1650 2250 m 168 | gs 1 -1 sc (contoallarovescia) dup sw pop neg 0 rm col0 sh gr 169 | /Helvetica ff 183.33 scf sf 170 | 1650 2775 m 171 | gs 1 -1 sc (contoallarovescia) dup sw pop neg 0 rm col0 sh gr 172 | /Helvetica ff 183.33 scf sf 173 | 2100 1200 m 174 | gs 1 -1 sc (n) dup sw pop neg 0 rm col0 sh gr 175 | /Helvetica ff 183.33 scf sf 176 | 2625 1200 m 177 | gs 1 -1 sc (3) col0 sh gr 178 | /Helvetica ff 183.33 scf sf 179 | 2100 1725 m 180 | gs 1 -1 sc (n) dup sw pop neg 0 rm col0 sh gr 181 | /Helvetica ff 183.33 scf sf 182 | 2625 1725 m 183 | gs 1 -1 sc (2) col0 sh gr 184 | /Helvetica ff 183.33 scf sf 185 | 2100 2250 m 186 | gs 1 -1 sc (n) dup sw pop neg 0 rm col0 sh gr 187 | /Helvetica ff 183.33 scf sf 188 | 2625 2250 m 189 | gs 1 -1 sc (1) col0 sh gr 190 | /Helvetica ff 183.33 scf sf 191 | 2100 2775 m 192 | gs 1 -1 sc (n) dup sw pop neg 0 rm col0 sh gr 193 | /Helvetica ff 183.33 scf sf 194 | 2625 2775 m 195 | gs 1 -1 sc (0) col0 sh gr 196 | % here ends figure; 197 | pagefooter 198 | showpage 199 | %%Trailer 200 | %EOF 201 | -------------------------------------------------------------------------------- /figs/stack2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 11 | 1800 450 3000 450 3000 825 1800 825 1800 450 12 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 13 | 1800 975 3000 975 3000 1350 1800 1350 1800 975 14 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 15 | 1800 1500 3000 1500 3000 1875 1800 1875 1800 1500 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1800 2025 3000 2025 3000 2400 1800 2400 1800 2025 18 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 19 | 1800 2550 3000 2550 3000 2925 1800 2925 1800 2550 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 2175 1147 2550 1147 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 2175 1672 2550 1672 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 2175 2197 2550 2197 29 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 30 | 0 0 1.00 60.00 120.00 31 | 2175 2722 2550 2722 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 1530 1650 1200 contoallarovescia\001 34 | 4 2 0 50 0 16 11 0.0000 4 135 1530 1650 1725 contoallarovescia\001 35 | 4 2 0 50 0 16 11 0.0000 4 135 1530 1650 2250 contoallarovescia\001 36 | 4 2 0 50 0 16 11 0.0000 4 135 1530 1650 2775 contoallarovescia\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 45 | -------------------------------------------------------------------------------- /figs/stack2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/stack2.pdf -------------------------------------------------------------------------------- /figs/stack3.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 2475.000 5700 2700 5925 2475 5700 2250 11 | 0 0 1.00 60.00 120.00 12 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 1950.000 5700 2175 5925 1950 5700 1725 13 | 0 0 1.00 60.00 120.00 14 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 900.000 5700 1125 5925 900 5700 675 15 | 0 0 1.00 60.00 120.00 16 | 5 1 0 1 0 7 50 0 -1 0.000 0 1 1 0 5700.000 1425.000 5700 1650 5925 1425 5700 1200 17 | 0 0 1.00 60.00 120.00 18 | 6 1950 1050 2775 1200 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 2175 1147 2550 1147 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 24 | -6 25 | 6 2910 1065 4065 1200 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 3525 1147 3900 1147 29 | 4 2 0 50 0 16 11 0.0000 4 120 540 3450 1200 ricors\001 30 | 4 0 0 50 0 16 11 0.0000 4 135 90 3975 1200 2\001 31 | -6 32 | 6 2910 1590 4065 1725 33 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 34 | 0 0 1.00 60.00 120.00 35 | 3525 1672 3900 1672 36 | 4 2 0 50 0 16 11 0.0000 4 120 540 3450 1725 ricors\001 37 | 4 0 0 50 0 16 11 0.0000 4 135 90 3975 1725 1\001 38 | -6 39 | 6 2910 2115 4065 2250 40 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 41 | 0 0 1.00 60.00 120.00 42 | 3525 2197 3900 2197 43 | 4 2 0 50 0 16 11 0.0000 4 120 540 3450 2250 ricors\001 44 | 4 0 0 50 0 16 11 0.0000 4 135 90 3975 2250 1\001 45 | -6 46 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 47 | 0 0 1.00 60.00 120.00 48 | 2175 1672 2550 1672 49 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 50 | 0 0 1.00 60.00 120.00 51 | 2175 2197 2550 2197 52 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 53 | 0 0 1.00 60.00 120.00 54 | 2175 2722 2550 2722 55 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 56 | 1800 1500 5700 1500 5700 1875 1800 1875 1800 1500 57 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 58 | 1800 2025 5700 2025 5700 2400 1800 2400 1800 2025 59 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 60 | 1800 2550 5700 2550 5700 2925 1800 2925 1800 2550 61 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 62 | 1800 450 5700 450 5700 825 1800 825 1800 450 63 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 64 | 0 0 1.00 60.00 120.00 65 | 5025 2197 5400 2197 66 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 67 | 0 0 1.00 60.00 120.00 68 | 5025 1672 5400 1672 69 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 70 | 0 0 1.00 60.00 120.00 71 | 5025 1147 5400 1147 72 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 73 | 1800 975 5700 975 5700 1350 1800 1350 1800 975 74 | 4 2 0 50 0 16 11 0.0000 4 135 720 1650 675 __main__\001 75 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 1200 fattoriale\001 76 | 4 2 0 50 0 16 11 0.0000 4 90 90 2100 1725 n\001 77 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 1725 2\001 78 | 4 2 0 50 0 16 11 0.0000 4 90 90 2100 2250 n\001 79 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 2250 1\001 80 | 4 2 0 50 0 16 11 0.0000 4 90 90 2100 2775 n\001 81 | 4 0 0 50 0 16 11 0.0000 4 135 90 2625 2775 0\001 82 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 1725 fattoriale\001 83 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 2250 fattoriale\001 84 | 4 2 0 50 0 16 11 0.0000 4 135 900 1650 2775 fattoriale\001 85 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 2550 1\001 86 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 2025 1\001 87 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 1500 2\001 88 | 4 0 0 50 0 16 11 0.0000 4 135 90 6000 975 6\001 89 | 4 0 0 50 0 16 11 0.0000 4 135 90 5475 2250 1\001 90 | 4 2 0 50 0 16 11 0.0000 4 135 810 4950 2250 risultato\001 91 | 4 0 0 50 0 16 11 0.0000 4 135 90 5475 1725 2\001 92 | 4 0 0 50 0 16 11 0.0000 4 135 90 5475 1200 6\001 93 | 4 2 0 50 0 16 11 0.0000 4 135 810 4950 1200 risultato\001 94 | 4 2 0 50 0 16 11 0.0000 4 135 810 4950 1725 risultato\001 95 | -------------------------------------------------------------------------------- /figs/stack3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/stack3.pdf -------------------------------------------------------------------------------- /figs/stack5.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: stack5.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 22:05:02 2015 5 | %%BoundingBox: 0 0 225 74 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 74 moveto 0 0 lineto 225 0 lineto 225 74 lineto closepath clip newpath 85 | -109.6 162.7 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 2700 1500 m 3675 1500 l 3675 1950 l 2700 1950 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | n 2700 2100 m 3675 2100 l 3675 2550 l 2700 2550 l 111 | cp gs col7 0.90 shd ef gr gs col0 s gr 112 | % Polyline 113 | n 4125 1725 m 5550 1725 l 5550 2700 l 4125 2700 l 114 | cp gs col7 0.90 shd ef gr gs col0 s gr 115 | % Polyline 116 | gs clippath 117 | 4813 2227 m 4965 2227 l 4965 2167 l 4813 2167 l 4813 2167 l 4933 2197 l 4813 2227 l cp 118 | eoclip 119 | n 4575 2197 m 120 | 4950 2197 l gs col0 s gr gr 121 | 122 | % arrowhead 123 | n 4813 2227 m 4933 2197 l 4813 2167 l col0 s 124 | % Polyline 125 | gs clippath 126 | 4813 2527 m 4965 2527 l 4965 2467 l 4813 2467 l 4813 2467 l 4933 2497 l 4813 2527 l cp 127 | eoclip 128 | n 4575 2497 m 129 | 4950 2497 l gs col0 s gr gr 130 | 131 | % arrowhead 132 | n 4813 2527 m 4933 2497 l 4813 2467 l col0 s 133 | % Polyline 134 | gs clippath 135 | 4813 1927 m 4965 1927 l 4965 1867 l 4813 1867 l 4813 1867 l 4933 1897 l 4813 1927 l cp 136 | eoclip 137 | n 4575 1897 m 138 | 4950 1897 l gs col0 s gr gr 139 | 140 | % arrowhead 141 | n 4813 1927 m 4933 1897 l 4813 1867 l col0 s 142 | % Polyline 143 | gs clippath 144 | 3953 2051 m 4079 1966 l 4045 1916 l 3919 2001 l 3919 2001 l 4036 1959 l 3953 2051 l cp 145 | eoclip 146 | n 3507 2318 m 147 | 4050 1950 l gs col0 s gr gr 148 | 149 | % arrowhead 150 | n 3953 2051 m 4036 1959 l 3919 2001 l col0 s 151 | % Polyline 152 | gs clippath 153 | 3910 1867 m 4056 1907 l 4072 1850 l 3926 1809 l 3926 1809 l 4034 1871 l 3910 1867 l cp 154 | eoclip 155 | n 3510 1725 m 156 | 4050 1875 l gs col0 s gr gr 157 | 158 | % arrowhead 159 | n 3910 1867 m 4034 1871 l 3926 1809 l col0 s 160 | /Helvetica ff 183.33 scf sf 161 | 4500 1950 m 162 | gs 1 -1 sc (0) dup sw pop neg 0 rm col0 sh gr 163 | /Helvetica ff 183.33 scf sf 164 | 4500 2250 m 165 | gs 1 -1 sc (1) dup sw pop neg 0 rm col0 sh gr 166 | /Helvetica ff 183.33 scf sf 167 | 4500 2550 m 168 | gs 1 -1 sc (2) dup sw pop neg 0 rm col0 sh gr 169 | /Helvetica ff 183.33 scf sf 170 | 5025 1950 m 171 | gs 1 -1 sc ('a') col0 sh gr 172 | /Helvetica ff 183.33 scf sf 173 | 5025 2250 m 174 | gs 1 -1 sc ('b') col0 sh gr 175 | /Helvetica ff 183.33 scf sf 176 | 5025 2550 m 177 | gs 1 -1 sc ('c') col0 sh gr 178 | /Helvetica ff 183.33 scf sf 179 | 4125 1650 m 180 | gs 1 -1 sc (list) col0 sh gr 181 | /Helvetica ff 183.33 scf sf 182 | 3450 2377 m 183 | gs 1 -1 sc (t) dup sw pop neg 0 rm col0 sh gr 184 | /Helvetica ff 183.33 scf sf 185 | 3465 1770 m 186 | gs 1 -1 sc (lettere) dup sw pop neg 0 rm col0 sh gr 187 | /Helvetica ff 183.33 scf sf 188 | 2632 2377 m 189 | gs 1 -1 sc (decapita) dup sw pop neg 0 rm col0 sh gr 190 | /Helvetica ff 183.33 scf sf 191 | 1842 1770 m 192 | gs 1 -1 sc (__main__) col0 sh gr 193 | % here ends figure; 194 | pagefooter 195 | showpage 196 | %%Trailer 197 | %EOF 198 | -------------------------------------------------------------------------------- /figs/stack5.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 4575 2197 4950 2197 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 4575 2497 4950 2497 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 4575 1897 4950 1897 19 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 20 | 2700 1500 3675 1500 3675 1950 2700 1950 2700 1500 21 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 22 | 2700 2100 3675 2100 3675 2550 2700 2550 2700 2100 23 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 24 | 0 0 1.00 60.00 120.00 25 | 3507 2318 4050 1950 26 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 27 | 0 0 1.00 60.00 120.00 28 | 3510 1725 4050 1875 29 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 30 | 4125 1725 5550 1725 5550 2700 4125 2700 4125 1725 31 | 4 2 0 50 0 16 11 0.0000 4 135 90 4500 1950 0\001 32 | 4 2 0 50 0 16 11 0.0000 4 135 90 4500 2250 1\001 33 | 4 2 0 50 0 16 11 0.0000 4 135 90 4500 2550 2\001 34 | 4 0 0 50 0 16 11 0.0000 4 135 270 5025 1950 'a'\001 35 | 4 0 0 50 0 16 11 0.0000 4 135 270 5025 2250 'b'\001 36 | 4 0 0 50 0 16 11 0.0000 4 135 270 5025 2550 'c'\001 37 | 4 0 0 50 0 16 11 0.0000 4 135 360 4125 1650 list\001 38 | 4 2 0 50 0 16 11 0.0000 4 120 90 3450 2377 t\001 39 | 4 2 0 50 0 16 11 0.0000 4 135 630 3465 1770 lettere\001 40 | 4 2 0 50 0 16 11 0.0000 4 165 720 2632 2377 decapita\001 41 | 4 0 0 50 0 16 11 0.0000 4 135 720 1842 1770 __main__\001 42 | -------------------------------------------------------------------------------- /figs/stack5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/stack5.pdf -------------------------------------------------------------------------------- /figs/state.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 405 765 3675 1950 11 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 12 | 1650 975 3675 975 3675 1950 1650 1950 1650 975 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1447 2475 1447 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2100 1747 2475 1747 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 2100 1147 2475 1147 22 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 23 | 0 0 1.00 60.00 120.00 24 | 1200 1125 1575 1125 25 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1200 0\001 26 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1500 1\001 27 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 1800 2\001 28 | 4 0 0 50 0 16 11 0.0000 4 135 810 2550 1200 'cheddar'\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 540 2550 1500 'edam'\001 30 | 4 0 0 50 0 16 11 0.0000 4 165 630 2550 1800 'gouda'\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 900 list\001 32 | 4 2 0 50 0 16 11 0.0000 4 165 720 1125 1200 formaggi\001 33 | -6 34 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 35 | 0 0 1.00 60.00 120.00 36 | 2100 2497 2475 2497 37 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 38 | 1650 3675 3675 3675 3675 4650 1650 4650 1650 3675 39 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 40 | 0 0 1.00 60.00 120.00 41 | 1200 3825 1575 3825 42 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 43 | 0 0 1.00 60.00 120.00 44 | 2100 2850 2475 3075 45 | 2 1 2 1 0 7 50 0 -1 4.000 0 0 -1 0 0 2 46 | 2100 2797 2475 2797 47 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 48 | 1650 2325 3675 2325 3675 3300 1650 3300 1650 2325 49 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 50 | 0 0 1.00 60.00 120.00 51 | 1200 2475 1575 2475 52 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2550 0\001 53 | 4 2 0 50 0 16 11 0.0000 4 135 90 2025 2850 1\001 54 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 3600 list\001 55 | 4 2 0 50 0 16 11 0.0000 4 120 540 1125 2550 numeri\001 56 | 4 2 0 50 0 16 11 0.0000 4 120 450 1125 3900 vuota\001 57 | 4 0 0 50 0 16 11 0.0000 4 135 180 2550 2550 42\001 58 | 4 0 0 50 0 16 11 0.0000 4 135 270 2550 2850 123\001 59 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 3150 5\001 60 | 4 0 0 50 0 16 11 0.0000 4 135 360 1650 2250 list\001 61 | -------------------------------------------------------------------------------- /figs/state.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/state.pdf -------------------------------------------------------------------------------- /figs/state2.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: state2.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Sat Oct 24 19:54:11 2015 5 | %%BoundingBox: 0 0 319 60 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 60 moveto 0 0 lineto 319 0 lineto 319 60 lineto closepath clip newpath 85 | -62.3 117.7 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1050 975 m 6300 975 l 6300 1950 l 1050 1950 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | gs clippath 111 | 2338 1477 m 2490 1477 l 2490 1417 l 2338 1417 l 2338 1417 l 2458 1447 l 2338 1477 l cp 112 | eoclip 113 | n 2100 1447 m 114 | 2475 1447 l gs col0 s gr gr 115 | 116 | % arrowhead 117 | n 2338 1477 m 2458 1447 l 2338 1417 l col0 s 118 | % Polyline 119 | gs clippath 120 | 2338 1777 m 2490 1777 l 2490 1717 l 2338 1717 l 2338 1717 l 2458 1747 l 2338 1777 l cp 121 | eoclip 122 | n 2100 1747 m 123 | 2475 1747 l gs col0 s gr gr 124 | 125 | % arrowhead 126 | n 2338 1777 m 2458 1747 l 2338 1717 l col0 s 127 | % Polyline 128 | gs clippath 129 | 2338 1177 m 2490 1177 l 2490 1117 l 2338 1117 l 2338 1117 l 2458 1147 l 2338 1177 l cp 130 | eoclip 131 | n 2100 1147 m 132 | 2475 1147 l gs col0 s gr gr 133 | 134 | % arrowhead 135 | n 2338 1177 m 2458 1147 l 2338 1117 l col0 s 136 | /Helvetica ff 183.33 scf sf 137 | 2025 1200 m 138 | gs 1 -1 sc (messaggio) dup sw pop neg 0 rm col0 sh gr 139 | /Helvetica ff 183.33 scf sf 140 | 2025 1500 m 141 | gs 1 -1 sc (n) dup sw pop neg 0 rm col0 sh gr 142 | /Helvetica ff 183.33 scf sf 143 | 2025 1800 m 144 | gs 1 -1 sc (pi) dup sw pop neg 0 rm col0 sh gr 145 | /Helvetica ff 183.33 scf sf 146 | 2550 1500 m 147 | gs 1 -1 sc (17) col0 sh gr 148 | /Helvetica ff 183.33 scf sf 149 | 2550 1800 m 150 | gs 1 -1 sc (3.141592653589793) col0 sh gr 151 | /Helvetica ff 183.33 scf sf 152 | 2550 1200 m 153 | gs 1 -1 sc ('E ora qualcosa di completamente diverso') col0 sh gr 154 | % here ends figure; 155 | pagefooter 156 | showpage 157 | %%Trailer 158 | %EOF 159 | -------------------------------------------------------------------------------- /figs/state2.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 2100 1072 2475 1822 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 2100 1447 2475 1447 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 2100 1747 2475 1747 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 2100 1147 2475 1147 20 | -6 21 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 22 | 1050 975 6300 975 6300 1950 1050 1950 1050 975 23 | 4 2 0 50 0 16 11 0.0000 4 150 810 2025 1200 messaggio\001 24 | 4 2 0 50 0 16 11 0.0000 4 90 90 2025 1500 n\001 25 | 4 2 0 50 0 16 11 0.0000 4 150 180 2025 1800 pi\001 26 | 4 0 0 50 0 16 11 0.0000 4 135 180 2550 1500 17\001 27 | 4 0 0 50 0 16 11 0.0000 4 150 1530 2550 1800 3.141592653589793\001 28 | 4 0 0 50 0 16 11 0.0000 4 165 3690 2550 1200 'E ora qualcosa di completamente diverso'\001 29 | -------------------------------------------------------------------------------- /figs/state2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/state2.pdf -------------------------------------------------------------------------------- /figs/state3.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: state3.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 22:21:37 2015 5 | %%BoundingBox: 0 0 132 78 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 78 moveto 0 0 lineto 132 0 lineto 132 78 lineto closepath clip newpath 85 | -71.3 135.7 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1200 975 m 3375 975 l 3375 2250 l 1200 2250 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | gs clippath 111 | 2338 1477 m 2490 1477 l 2490 1417 l 2338 1417 l 2338 1417 l 2458 1447 l 2338 1477 l cp 112 | eoclip 113 | n 2100 1447 m 114 | 2475 1447 l gs col0 s gr gr 115 | 116 | % arrowhead 117 | n 2338 1477 m 2458 1447 l 2338 1417 l col0 s 118 | % Polyline 119 | gs clippath 120 | 2338 1777 m 2490 1777 l 2490 1717 l 2338 1717 l 2338 1717 l 2458 1747 l 2338 1777 l cp 121 | eoclip 122 | n 2100 1747 m 123 | 2475 1747 l gs col0 s gr gr 124 | 125 | % arrowhead 126 | n 2338 1777 m 2458 1747 l 2338 1717 l col0 s 127 | % Polyline 128 | gs clippath 129 | 2338 1177 m 2490 1177 l 2490 1117 l 2338 1117 l 2338 1117 l 2458 1147 l 2338 1177 l cp 130 | eoclip 131 | n 2100 1147 m 132 | 2475 1147 l gs col0 s gr gr 133 | 134 | % arrowhead 135 | n 2338 1177 m 2458 1147 l 2338 1117 l col0 s 136 | % Polyline 137 | gs clippath 138 | 2338 2055 m 2490 2055 l 2490 1995 l 2338 1995 l 2338 1995 l 2458 2025 l 2338 2055 l cp 139 | eoclip 140 | n 2100 2025 m 141 | 2475 2025 l gs col0 s gr gr 142 | 143 | % arrowhead 144 | n 2338 2055 m 2458 2025 l 2338 1995 l col0 s 145 | /Helvetica ff 183.33 scf sf 146 | 2025 1200 m 147 | gs 1 -1 sc (parola1) dup sw pop neg 0 rm col0 sh gr 148 | /Helvetica ff 183.33 scf sf 149 | 2025 1500 m 150 | gs 1 -1 sc (parola2) dup sw pop neg 0 rm col0 sh gr 151 | /Helvetica ff 183.33 scf sf 152 | 2550 1200 m 153 | gs 1 -1 sc ('pots') col0 sh gr 154 | /Helvetica ff 183.33 scf sf 155 | 2550 1500 m 156 | gs 1 -1 sc ('stop') col0 sh gr 157 | /Helvetica ff 183.33 scf sf 158 | 2025 1800 m 159 | gs 1 -1 sc (i) dup sw pop neg 0 rm col0 sh gr 160 | /Helvetica ff 183.33 scf sf 161 | 2550 1800 m 162 | gs 1 -1 sc (0) col0 sh gr 163 | /Helvetica ff 183.33 scf sf 164 | 2025 2100 m 165 | gs 1 -1 sc (j) dup sw pop neg 0 rm col0 sh gr 166 | /Helvetica ff 183.33 scf sf 167 | 2550 2100 m 168 | gs 1 -1 sc (3) col0 sh gr 169 | % here ends figure; 170 | pagefooter 171 | showpage 172 | %%Trailer 173 | %EOF 174 | -------------------------------------------------------------------------------- /figs/state3.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1747 2475 1747 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2100 1147 2475 1147 19 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 20 | 0 0 1.00 60.00 120.00 21 | 2100 2025 2475 2025 22 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 23 | 1200 975 3375 975 3375 2250 1200 2250 1200 975 24 | 4 2 0 50 0 16 11 0.0000 4 165 630 2025 1200 parola1\001 25 | 4 2 0 50 0 16 11 0.0000 4 165 630 2025 1500 parola2\001 26 | 4 0 0 50 0 16 11 0.0000 4 165 540 2550 1200 'pots'\001 27 | 4 0 0 50 0 16 11 0.0000 4 165 540 2550 1500 'stop'\001 28 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1800 i\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 1800 0\001 30 | 4 2 0 50 0 16 11 0.0000 4 150 90 2025 2100 j\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 90 2550 2100 3\001 32 | -------------------------------------------------------------------------------- /figs/state3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/state3.pdf -------------------------------------------------------------------------------- /figs/state4.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: state4.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 22:22:36 2015 5 | %%BoundingBox: 0 0 245 56 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 56 moveto 0 0 lineto 245 0 lineto 245 56 lineto closepath clip newpath 85 | -62.3 221.2 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1050 2775 m 5100 2775 l 5100 3675 l 1050 3675 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | gs clippath 111 | 2188 3502 m 2340 3502 l 2340 3442 l 2188 3442 l 2188 3442 l 2308 3472 l 2188 3502 l cp 112 | eoclip 113 | n 1950 3472 m 114 | 2325 3472 l gs col0 s gr gr 115 | 116 | % arrowhead 117 | n 2188 3502 m 2308 3472 l 2188 3442 l col0 s 118 | % Polyline 119 | gs clippath 120 | 4288 3480 m 4440 3480 l 4440 3420 l 4288 3420 l 4288 3420 l 4408 3450 l 4288 3480 l cp 121 | eoclip 122 | n 4050 3450 m 123 | 4425 3450 l gs col0 s gr gr 124 | 125 | % arrowhead 126 | n 4288 3480 m 4408 3450 l 4288 3420 l col0 s 127 | % Polyline 128 | gs clippath 129 | 2188 2977 m 2340 2977 l 2340 2917 l 2188 2917 l 2188 2917 l 2308 2947 l 2188 2977 l cp 130 | eoclip 131 | n 1950 2947 m 132 | 2325 2947 l gs col0 s gr gr 133 | 134 | % arrowhead 135 | n 2188 2977 m 2308 2947 l 2188 2917 l col0 s 136 | % Polyline 137 | gs clippath 138 | 3988 2977 m 4140 2977 l 4140 2917 l 3988 2917 l 3988 2917 l 4108 2947 l 3988 2977 l cp 139 | eoclip 140 | n 3750 2947 m 141 | 4125 2947 l gs col0 s gr gr 142 | 143 | % arrowhead 144 | n 3988 2977 m 4108 2947 l 3988 2917 l col0 s 145 | % Polyline 146 | [15 45] 45 sd 147 | n 2475 3300 m 148 | 2475 3075 l gs col0 s gr [] 0 sd 149 | % Polyline 150 | [15 45] 45 sd 151 | n 4537 3307 m 152 | 4537 3082 l gs col0 s gr [] 0 sd 153 | /Helvetica ff 183.33 scf sf 154 | 1875 3525 m 155 | gs 1 -1 sc (i) dup sw pop neg 0 rm col0 sh gr 156 | /Helvetica ff 183.33 scf sf 157 | 2400 3525 m 158 | gs 1 -1 sc (0) col0 sh gr 159 | /Helvetica ff 183.33 scf sf 160 | 3975 3525 m 161 | gs 1 -1 sc (j) dup sw pop neg 0 rm col0 sh gr 162 | /Helvetica ff 183.33 scf sf 163 | 4500 3525 m 164 | gs 1 -1 sc (3) col0 sh gr 165 | /Helvetica ff 183.33 scf sf 166 | 1875 3000 m 167 | gs 1 -1 sc (parola1) dup sw pop neg 0 rm col0 sh gr 168 | /Helvetica ff 183.33 scf sf 169 | 2400 3000 m 170 | gs 1 -1 sc ('pots') col0 sh gr 171 | /Helvetica ff 183.33 scf sf 172 | 3675 3000 m 173 | gs 1 -1 sc (parola2) dup sw pop neg 0 rm col0 sh gr 174 | /Helvetica ff 183.33 scf sf 175 | 4200 3000 m 176 | gs 1 -1 sc ('stop') col0 sh gr 177 | % here ends figure; 178 | pagefooter 179 | showpage 180 | %%Trailer 181 | %EOF 182 | -------------------------------------------------------------------------------- /figs/state4.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 1800 3375 2550 3525 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 1950 3472 2325 3472 14 | 4 2 0 50 0 16 11 0.0000 4 120 90 1875 3525 i\001 15 | 4 0 0 50 0 16 11 0.0000 4 135 90 2400 3525 0\001 16 | -6 17 | 6 3900 3375 4650 3600 18 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 19 | 0 0 1.00 60.00 120.00 20 | 4050 3450 4425 3450 21 | 4 2 0 50 0 16 11 0.0000 4 150 90 3975 3525 j\001 22 | 4 0 0 50 0 16 11 0.0000 4 135 90 4500 3525 3\001 23 | -6 24 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 25 | 0 0 1.00 60.00 120.00 26 | 1950 2947 2325 2947 27 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 28 | 0 0 1.00 60.00 120.00 29 | 3750 2947 4125 2947 30 | 2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 31 | 2475 3300 2475 3075 32 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 33 | 1050 2775 5100 2775 5100 3675 1050 3675 1050 2775 34 | 2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 35 | 4537 3307 4537 3082 36 | 4 2 0 50 0 16 11 0.0000 4 165 630 1875 3000 parola1\001 37 | 4 0 0 50 0 16 11 0.0000 4 165 540 2400 3000 'pots'\001 38 | 4 2 0 50 0 16 11 0.0000 4 165 630 3675 3000 parola2\001 39 | 4 0 0 50 0 16 11 0.0000 4 165 540 4200 3000 'stop'\001 40 | -------------------------------------------------------------------------------- /figs/state4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/state4.pdf -------------------------------------------------------------------------------- /figs/state5.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 6 4350 1500 5700 3000 11 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 12 | 0 0 1.00 60.00 120.00 13 | 4800 2197 5175 2197 14 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 15 | 0 0 1.00 60.00 120.00 16 | 4800 1897 5175 1897 17 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 18 | 0 0 1.00 60.00 120.00 19 | 4800 2497 5175 2497 20 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 21 | 0 0 1.00 60.00 120.00 22 | 4800 2797 5175 2797 23 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 24 | 4350 1725 5700 1725 5700 3000 4350 3000 4350 1725 25 | 4 2 0 50 0 16 11 0.0000 4 135 90 4725 1950 0\001 26 | 4 2 0 50 0 16 11 0.0000 4 135 90 4725 2250 1\001 27 | 4 0 0 50 0 16 11 0.0000 4 135 270 5250 1950 'a'\001 28 | 4 0 0 50 0 16 11 0.0000 4 165 270 5250 2250 'p'\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 360 4350 1650 list\001 30 | 4 2 0 50 0 16 11 0.0000 4 135 90 4725 2550 2\001 31 | 4 0 0 50 0 16 11 0.0000 4 135 270 5250 2550 't'\001 32 | 4 0 0 50 0 16 11 0.0000 4 135 270 5250 2850 'o'\001 33 | 4 2 0 50 0 16 11 0.0000 4 135 90 4725 2850 3\001 34 | -6 35 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 36 | 0 0 1.00 60.00 120.00 37 | 3825 1897 4350 1890 38 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 39 | 0 0 1.00 60.00 120.00 40 | 3000 1875 3375 1875 41 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 42 | 3375 1725 4050 1725 4050 3750 3375 3750 3375 1725 43 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 44 | 0 0 1.00 60.00 120.00 45 | 3825 3529 4350 3522 46 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 47 | 0 0 1.00 60.00 120.00 48 | 4800 3547 5175 3547 49 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 50 | 4350 3375 5700 3375 5700 3750 4350 3750 4350 3375 51 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 52 | 0 0 1.00 60.00 120.00 53 | 1575 2197 1950 2197 54 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 55 | 0 0 1.00 60.00 120.00 56 | 1575 1897 1950 1897 57 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 58 | 0 0 1.00 60.00 120.00 59 | 750 1875 1125 1875 60 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 61 | 0 0 1.00 60.00 120.00 62 | 1575 2797 1950 2797 63 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 64 | 0 0 1.00 60.00 120.00 65 | 1575 3097 1950 3097 66 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 67 | 0 0 1.00 60.00 120.00 68 | 1575 2497 1950 2497 69 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 70 | 1125 1725 2400 1725 2400 3300 1125 3300 1125 1725 71 | 4 2 0 50 0 16 11 0.0000 4 135 90 3750 1950 1\001 72 | 4 0 0 50 0 16 11 0.0000 4 135 360 3375 1650 dict\001 73 | 4 0 0 50 0 16 11 0.0000 4 120 270 2700 1950 inv\001 74 | 4 2 0 50 0 16 11 0.0000 4 135 90 3750 3600 2\001 75 | 4 2 0 50 0 16 11 0.0000 4 135 90 4725 3600 0\001 76 | 4 0 0 50 0 16 11 0.0000 4 135 360 4350 3300 list\001 77 | 4 0 0 50 0 16 11 0.0000 4 135 270 5250 3600 'r'\001 78 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 1950 'a'\001 79 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 1950 1\001 80 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2250 1\001 81 | 4 0 0 50 0 16 11 0.0000 4 135 360 1125 1650 dict\001 82 | 4 0 0 50 0 16 11 0.0000 4 120 360 450 1950 isto\001 83 | 4 2 0 50 0 16 11 0.0000 4 165 270 1500 2250 'p'\001 84 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2850 1\001 85 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 3150 'o'\001 86 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 3150 1\001 87 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 2550 'r'\001 88 | 4 0 0 50 0 16 11 0.0000 4 135 90 2025 2550 2\001 89 | 4 2 0 50 0 16 11 0.0000 4 135 270 1500 2850 't'\001 90 | -------------------------------------------------------------------------------- /figs/state5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/state5.pdf -------------------------------------------------------------------------------- /figs/time.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Title: time.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 5e 4 | %%CreationDate: Wed Oct 14 22:16:38 2015 5 | %%BoundingBox: 0 0 146 73 6 | %Magnification: 1.0000 7 | %%EndComments 8 | %%BeginProlog 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | 48 | /cp {closepath} bind def 49 | /ef {eofill} bind def 50 | /gr {grestore} bind def 51 | /gs {gsave} bind def 52 | /sa {save} bind def 53 | /rs {restore} bind def 54 | /l {lineto} bind def 55 | /m {moveto} bind def 56 | /rm {rmoveto} bind def 57 | /n {newpath} bind def 58 | /s {stroke} bind def 59 | /sh {show} bind def 60 | /slc {setlinecap} bind def 61 | /slj {setlinejoin} bind def 62 | /slw {setlinewidth} bind def 63 | /srgb {setrgbcolor} bind def 64 | /rot {rotate} bind def 65 | /sc {scale} bind def 66 | /sd {setdash} bind def 67 | /ff {findfont} bind def 68 | /sf {setfont} bind def 69 | /scf {scalefont} bind def 70 | /sw {stringwidth} bind def 71 | /tr {translate} bind def 72 | /tnt {dup dup currentrgbcolor 73 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 74 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 75 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 76 | bind def 77 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 78 | 4 -2 roll mul srgb} bind def 79 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 80 | /$F2psEnd {$F2psEnteredState restore end} def 81 | 82 | /pageheader { 83 | save 84 | newpath 0 73 moveto 0 0 lineto 146 0 lineto 146 73 lineto closepath clip newpath 85 | -30.6 117.7 translate 86 | 1 -1 scale 87 | $F2psBegin 88 | 10 setmiterlimit 89 | 0 slj 0 slc 90 | 0.06000 0.06000 sc 91 | } bind def 92 | /pagefooter { 93 | $F2psEnd 94 | restore 95 | } bind def 96 | %%EndProlog 97 | pageheader 98 | % 99 | % Fig objects follow 100 | % 101 | % 102 | % here starts figure with depth 51 103 | % Polyline 104 | 0 slj 105 | 0 slc 106 | 7.500 slw 107 | n 1350 975 m 2925 975 l 2925 1950 l 1350 1950 l 108 | cp gs col7 0.90 shd ef gr gs col0 s gr 109 | % Polyline 110 | gs clippath 111 | 2413 1477 m 2565 1477 l 2565 1417 l 2413 1417 l 2413 1417 l 2533 1447 l 2413 1477 l cp 112 | eoclip 113 | n 2175 1447 m 114 | 2550 1447 l gs col0 s gr gr 115 | 116 | % arrowhead 117 | n 2413 1477 m 2533 1447 l 2413 1417 l col0 s 118 | % Polyline 119 | gs clippath 120 | 2405 1777 m 2557 1777 l 2557 1717 l 2405 1717 l 2405 1717 l 2525 1747 l 2405 1777 l cp 121 | eoclip 122 | n 2175 1747 m 123 | 2542 1747 l gs col0 s gr gr 124 | 125 | % arrowhead 126 | n 2405 1777 m 2525 1747 l 2405 1717 l col0 s 127 | % Polyline 128 | gs clippath 129 | 2413 1177 m 2565 1177 l 2565 1117 l 2413 1117 l 2413 1117 l 2533 1147 l 2413 1177 l cp 130 | eoclip 131 | n 2175 1147 m 132 | 2550 1147 l gs col0 s gr gr 133 | 134 | % arrowhead 135 | n 2413 1177 m 2533 1147 l 2413 1117 l col0 s 136 | % Polyline 137 | gs clippath 138 | 1236 1230 m 1388 1230 l 1388 1170 l 1236 1170 l 1236 1170 l 1356 1200 l 1236 1230 l cp 139 | eoclip 140 | n 1050 1200 m 141 | 1373 1200 l gs col0 s gr gr 142 | 143 | % arrowhead 144 | n 1236 1230 m 1356 1200 l 1236 1170 l col0 s 145 | /Helvetica ff 183.33 scf sf 146 | 2625 1500 m 147 | gs 1 -1 sc (59) col0 sh gr 148 | /Helvetica ff 183.33 scf sf 149 | 2625 1800 m 150 | gs 1 -1 sc (30) col0 sh gr 151 | /Helvetica ff 183.33 scf sf 152 | 2100 1200 m 153 | gs 1 -1 sc (ora) dup sw pop neg 0 rm col0 sh gr 154 | /Helvetica ff 183.33 scf sf 155 | 2100 1500 m 156 | gs 1 -1 sc (minuto) dup sw pop neg 0 rm col0 sh gr 157 | /Helvetica ff 183.33 scf sf 158 | 2100 1800 m 159 | gs 1 -1 sc (secondo) dup sw pop neg 0 rm col0 sh gr 160 | /Helvetica ff 183.33 scf sf 161 | 2625 1200 m 162 | gs 1 -1 sc (11) col0 sh gr 163 | /Helvetica ff 183.33 scf sf 164 | 1425 900 m 165 | gs 1 -1 sc (Tempo) col0 sh gr 166 | /Helvetica ff 183.33 scf sf 167 | 525 1260 m 168 | gs 1 -1 sc (tempo) col0 sh gr 169 | % here ends figure; 170 | pagefooter 171 | showpage 172 | %%Trailer 173 | %EOF 174 | -------------------------------------------------------------------------------- /figs/time.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 Produced by xfig version 3.2.5c 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2175 1447 2550 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2175 1747 2542 1747 16 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 17 | 0 0 1.00 60.00 120.00 18 | 2175 1147 2550 1147 19 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 20 | 1350 975 2925 975 2925 1950 1350 1950 1350 975 21 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 22 | 0 0 1.00 60.00 120.00 23 | 1050 1200 1373 1200 24 | 4 0 0 50 0 16 11 0.0000 4 135 180 2625 1500 59\001 25 | 4 0 0 50 0 16 11 0.0000 4 135 180 2625 1800 30\001 26 | 4 2 0 50 0 16 11 0.0000 4 90 270 2100 1200 ora\001 27 | 4 2 0 50 0 16 11 0.0000 4 120 540 2100 1500 minuto\001 28 | 4 2 0 50 0 16 11 0.0000 4 135 630 2100 1800 secondo\001 29 | 4 0 0 50 0 16 11 0.0000 4 135 180 2625 1200 11\001 30 | 4 0 0 50 0 16 11 0.0000 4 165 450 1425 900 Tempo\001 31 | 4 0 0 50 0 16 11 0.0000 4 150 450 525 1260 tempo\001 32 | -------------------------------------------------------------------------------- /figs/time.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/time.pdf -------------------------------------------------------------------------------- /figs/towers.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/towers.pdf -------------------------------------------------------------------------------- /figs/tuple1.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-2.0 EPSF-2.0 2 | %%Title: tuple1.fig 3 | %%Creator: fig2dev Version 3.2 Patchlevel 4 4 | %%CreationDate: Tue Jul 31 12:27:49 2007 5 | %%For: downey@rocky.olin.edu (Allen Downey) 6 | %%BoundingBox: 0 0 123 53 7 | %%Magnification: 1.0000 8 | %%EndComments 9 | /$F2psDict 200 dict def 10 | $F2psDict begin 11 | $F2psDict /mtrx matrix put 12 | /col-1 {0 setgray} bind def 13 | /col0 {0.000 0.000 0.000 srgb} bind def 14 | /col1 {0.000 0.000 1.000 srgb} bind def 15 | /col2 {0.000 1.000 0.000 srgb} bind def 16 | /col3 {0.000 1.000 1.000 srgb} bind def 17 | /col4 {1.000 0.000 0.000 srgb} bind def 18 | /col5 {1.000 0.000 1.000 srgb} bind def 19 | /col6 {1.000 1.000 0.000 srgb} bind def 20 | /col7 {1.000 1.000 1.000 srgb} bind def 21 | /col8 {0.000 0.000 0.560 srgb} bind def 22 | /col9 {0.000 0.000 0.690 srgb} bind def 23 | /col10 {0.000 0.000 0.820 srgb} bind def 24 | /col11 {0.530 0.810 1.000 srgb} bind def 25 | /col12 {0.000 0.560 0.000 srgb} bind def 26 | /col13 {0.000 0.690 0.000 srgb} bind def 27 | /col14 {0.000 0.820 0.000 srgb} bind def 28 | /col15 {0.000 0.560 0.560 srgb} bind def 29 | /col16 {0.000 0.690 0.690 srgb} bind def 30 | /col17 {0.000 0.820 0.820 srgb} bind def 31 | /col18 {0.560 0.000 0.000 srgb} bind def 32 | /col19 {0.690 0.000 0.000 srgb} bind def 33 | /col20 {0.820 0.000 0.000 srgb} bind def 34 | /col21 {0.560 0.000 0.560 srgb} bind def 35 | /col22 {0.690 0.000 0.690 srgb} bind def 36 | /col23 {0.820 0.000 0.820 srgb} bind def 37 | /col24 {0.500 0.190 0.000 srgb} bind def 38 | /col25 {0.630 0.250 0.000 srgb} bind def 39 | /col26 {0.750 0.380 0.000 srgb} bind def 40 | /col27 {1.000 0.500 0.500 srgb} bind def 41 | /col28 {1.000 0.630 0.630 srgb} bind def 42 | /col29 {1.000 0.750 0.750 srgb} bind def 43 | /col30 {1.000 0.880 0.880 srgb} bind def 44 | /col31 {1.000 0.840 0.000 srgb} bind def 45 | 46 | end 47 | save 48 | newpath 0 53 moveto 0 0 lineto 123 0 lineto 123 53 lineto closepath clip newpath 49 | -98.3 99.7 translate 50 | 1 -1 scale 51 | 52 | /cp {closepath} bind def 53 | /ef {eofill} bind def 54 | /gr {grestore} bind def 55 | /gs {gsave} bind def 56 | /sa {save} bind def 57 | /rs {restore} bind def 58 | /l {lineto} bind def 59 | /m {moveto} bind def 60 | /rm {rmoveto} bind def 61 | /n {newpath} bind def 62 | /s {stroke} bind def 63 | /sh {show} bind def 64 | /slc {setlinecap} bind def 65 | /slj {setlinejoin} bind def 66 | /slw {setlinewidth} bind def 67 | /srgb {setrgbcolor} bind def 68 | /rot {rotate} bind def 69 | /sc {scale} bind def 70 | /sd {setdash} bind def 71 | /ff {findfont} bind def 72 | /sf {setfont} bind def 73 | /scf {scalefont} bind def 74 | /sw {stringwidth} bind def 75 | /tr {translate} bind def 76 | /tnt {dup dup currentrgbcolor 77 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 78 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add 79 | 4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb} 80 | bind def 81 | /shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul 82 | 4 -2 roll mul srgb} bind def 83 | /$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def 84 | /$F2psEnd {$F2psEnteredState restore end} def 85 | 86 | $F2psBegin 87 | 10 setmiterlimit 88 | 0 slj 0 slc 89 | 0.06000 0.06000 sc 90 | % 91 | % Fig objects follow 92 | % 93 | % 94 | % here starts figure with depth 51 95 | % Polyline 96 | 7.500 slw 97 | n 1650 975 m 3675 975 l 3675 1650 l 1650 1650 l 98 | cp gs col7 0.90 shd ef gr gs col0 s gr 99 | % Polyline 100 | gs clippath 101 | 2490 1477 m 2490 1417 l 2338 1417 l 2458 1447 l 2338 1477 l cp 102 | eoclip 103 | n 2100 1447 m 104 | 2475 1447 l gs col0 s gr gr 105 | 106 | % arrowhead 107 | n 2338 1477 m 2458 1447 l 2338 1417 l col0 s 108 | % Polyline 109 | gs clippath 110 | 2490 1177 m 2490 1117 l 2338 1117 l 2458 1147 l 2338 1177 l cp 111 | eoclip 112 | n 2100 1147 m 113 | 2475 1147 l gs col0 s gr gr 114 | 115 | % arrowhead 116 | n 2338 1177 m 2458 1147 l 2338 1117 l col0 s 117 | /Helvetica ff 165.00 scf sf 118 | 2025 1200 m 119 | gs 1 -1 sc (0) dup sw pop neg 0 rm col0 sh gr 120 | /Helvetica ff 165.00 scf sf 121 | 2025 1500 m 122 | gs 1 -1 sc (1) dup sw pop neg 0 rm col0 sh gr 123 | /Helvetica ff 165.00 scf sf 124 | 2550 1200 m 125 | gs 1 -1 sc ('Cleese') col0 sh gr 126 | /Helvetica ff 165.00 scf sf 127 | 2550 1500 m 128 | gs 1 -1 sc ('John') col0 sh gr 129 | /Helvetica ff 165.00 scf sf 130 | 1650 900 m 131 | gs 1 -1 sc (tuple) col0 sh gr 132 | % here ends figure; 133 | $F2psEnd 134 | rs 135 | showpage 136 | -------------------------------------------------------------------------------- /figs/tuple1.fig: -------------------------------------------------------------------------------- 1 | #FIG 3.2 2 | Landscape 3 | Center 4 | Inches 5 | Letter 6 | 100.00 7 | Single 8 | -2 9 | 1200 2 10 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 11 | 0 0 1.00 60.00 120.00 12 | 2100 1447 2475 1447 13 | 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2 14 | 0 0 1.00 60.00 120.00 15 | 2100 1147 2475 1147 16 | 2 2 0 1 0 7 51 0 18 0.000 0 0 -1 0 0 5 17 | 1650 975 3675 975 3675 1650 1650 1650 1650 975 18 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1200 0\001 19 | 4 2 0 50 0 16 11 0.0000 4 120 90 2025 1500 1\001 20 | 4 0 0 50 0 16 11 0.0000 4 120 510 2550 1200 'Cleese'\001 21 | 4 0 0 50 0 16 11 0.0000 4 120 405 2550 1500 'John'\001 22 | 4 0 0 50 0 16 11 0.0000 4 150 330 1650 900 tuple\001 23 | -------------------------------------------------------------------------------- /figs/tuple1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/figs/tuple1.pdf -------------------------------------------------------------------------------- /footer.html: -------------------------------------------------------------------------------- 1 |

2 | Buy this book at Amazon.com 3 | 4 | 5 | 6 | 7 | 8 |

9 |

Are you using one of our books in a class?

We'd like to know 10 | about it. Please consider filling out this short survey. 11 | 12 |

13 |
14 | 15 |

16 | Think DSP 17 | 18 |

19 | 20 | 21 |

22 | Think Java 23 | 24 |

25 | 26 | 27 |

28 | Think Bayes 29 | 30 |

31 | 32 | 33 |

34 | Think Python 2e 35 | 36 | 37 |

38 | 39 | 40 |

41 | Think Stats 2e 42 | 43 |

44 | 45 | 46 |

47 | Think Complexity 48 | 49 |

50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 |
6 | 9 | 10 |

11 | Buy this book at Amazon.com 12 | 13 | -------------------------------------------------------------------------------- /hevea.sty: -------------------------------------------------------------------------------- 1 | % hevea : hevea.sty 2 | % This is a very basic style file for latex document to be processed 3 | % with hevea. It contains definitions of LaTeX environment which are 4 | % processed in a special way by the translator. 5 | % Mostly : 6 | % - latexonly, not processed by hevea, processed by latex. 7 | % - htmlonly , the reverse. 8 | % - rawhtml, to include raw HTML in hevea output. 9 | % - toimage, to send text to the image file. 10 | % The package also provides hevea logos, html related commands (ahref 11 | % etc.), void cutting and image commands. 12 | \NeedsTeXFormat{LaTeX2e} 13 | \ProvidesPackage{hevea}[2002/01/11] 14 | \RequirePackage{comment} 15 | \newif\ifhevea\heveafalse 16 | \@ifundefined{ifimagen}{\newif\ifimagen\imagenfalse} 17 | \makeatletter% 18 | \newcommand{\heveasmup}[2]{% 19 | \raise #1\hbox{$\m@th$% 20 | \csname S@\f@size\endcsname 21 | \fontsize\sf@size 0% 22 | \math@fontsfalse\selectfont 23 | #2% 24 | }}% 25 | \DeclareRobustCommand{\hevea}{H\kern-.15em\heveasmup{.2ex}{E}\kern-.15emV\kern-.15em\heveasmup{.2ex}{E}\kern-.15emA}% 26 | \DeclareRobustCommand{\hacha}{H\kern-.15em\heveasmup{.2ex}{A}\kern-.15emC\kern-.1em\heveasmup{.2ex}{H}\kern-.15emA}% 27 | \DeclareRobustCommand{\html}{\protect\heveasmup{0.ex}{HTML}} 28 | %%%%%%%%% Hyperlinks hevea style 29 | \newcommand{\ahref}[2]{{#2}} 30 | \newcommand{\ahrefloc}[2]{{#2}} 31 | \newcommand{\aname}[2]{{#2}} 32 | \newcommand{\ahrefurl}[1]{\texttt{#1}} 33 | \newcommand{\footahref}[2]{#2\footnote{\texttt{#1}}} 34 | \newcommand{\mailto}[1]{\texttt{#1}} 35 | \newcommand{\imgsrc}[2][]{} 36 | \newcommand{\home}[1]{\protect\raisebox{-.75ex}{\char126}#1} 37 | \AtBeginDocument 38 | {\@ifundefined{url} 39 | {%url package is not loaded 40 | \let\url\ahref\let\oneurl\ahrefurl\let\footurl\footahref} 41 | {}} 42 | %% Void cutting instructions 43 | \newcounter{cuttingdepth} 44 | \newcommand{\tocnumber}{} 45 | \newcommand{\notocnumber}{} 46 | \newcommand{\cuttingunit}{} 47 | \newcommand{\cutdef}[2][]{} 48 | \newcommand{\cuthere}[2]{} 49 | \newcommand{\cutend}{} 50 | \newcommand{\htmlhead}[1]{} 51 | \newcommand{\htmlfoot}[1]{} 52 | \newcommand{\htmlprefix}[1]{} 53 | \newenvironment{cutflow}[1]{}{} 54 | \newcommand{\cutname}[1]{} 55 | \newcommand{\toplinks}[3]{} 56 | \newcommand{\setlinkstext}[3]{} 57 | \newcommand{\flushdef}[1]{} 58 | \newcommand{\footnoteflush}[1]{} 59 | %%%% Html only 60 | \excludecomment{rawhtml} 61 | \newcommand{\rawhtmlinput}[1]{} 62 | \excludecomment{htmlonly} 63 | %%%% Latex only 64 | \newenvironment{latexonly}{}{} 65 | \newenvironment{verblatex}{}{} 66 | %%%% Image file stuff 67 | \def\toimage{\endgroup} 68 | \def\endtoimage{\begingroup\def\@currenvir{toimage}} 69 | \def\verbimage{\endgroup} 70 | \def\endverbimage{\begingroup\def\@currenvir{verbimage}} 71 | \newcommand{\imageflush}[1][]{} 72 | %%% Bgcolor definition 73 | \newsavebox{\@bgcolorbin} 74 | \newenvironment{bgcolor}[2][] 75 | {\newcommand{\@mycolor}{#2}\begin{lrbox}{\@bgcolorbin}\vbox\bgroup} 76 | {\egroup\end{lrbox}% 77 | \begin{flushleft}% 78 | \colorbox{\@mycolor}{\usebox{\@bgcolorbin}}% 79 | \end{flushleft}} 80 | %%% Style sheets macros, defined as no-ops 81 | \newcommand{\newstyle}[2]{} 82 | \newcommand{\addstyle}[1]{} 83 | \newcommand{\setenvclass}[2]{} 84 | \newcommand{\getenvclass}[1]{} 85 | \newcommand{\loadcssfile}[1]{} 86 | \newenvironment{divstyle}[1]{}{} 87 | \newenvironment{cellstyle}[2]{}{} 88 | \newif\ifexternalcss 89 | %%% Postlude 90 | \makeatother 91 | -------------------------------------------------------------------------------- /htmlonly: -------------------------------------------------------------------------------- 1 | % put commands here that should be used for the HTML 2 | % version of the book but not Postscript or PDF 3 | 4 | \newcommand{\beforefig}{} 5 | \newcommand{\afterfig}{} 6 | 7 | \newcommand{\beforeverb}{\blue \large} 8 | \newcommand{\afterverb}{\black \normalsize} 9 | 10 | \newcommand{\adjustpage}[1]{} 11 | 12 | \newcommand{\clearemptydoublepage}{} 13 | \newcommand{\blankpage}{} 14 | 15 | \newcommand{\spacing}{} 16 | \newcommand{\endspacing}{} 17 | 18 | \newcommand{\frontmatter}{} 19 | \newcommand{\mainmatter}{} 20 | 21 | \newcommand{\theoremstyle}[1]{} 22 | \newcommand{\newtheoremstyle}[1]{} 23 | 24 | \newcommand{\vfill}{} 25 | 26 | \htmlhead{\rawhtmlinput{header.html}} 27 | 28 | \htmlfoot{\rawhtmlinput{footer.html}} -------------------------------------------------------------------------------- /latexonly: -------------------------------------------------------------------------------- 1 | \sloppy 2 | %\setlength{\topmargin}{-0.375in} 3 | %\setlength{\oddsidemargin}{0.0in} 4 | %\setlength{\evensidemargin}{0.0in} 5 | 6 | % Uncomment these to center on 8.5 x 11 7 | %\setlength{\topmargin}{0.625in} 8 | %\setlength{\oddsidemargin}{0.875in} 9 | %\setlength{\evensidemargin}{0.875in} 10 | 11 | %\setlength{\textheight}{7.2in} 12 | 13 | \setlength{\headsep}{3ex} 14 | \setlength{\parindent}{0.0in} 15 | \setlength{\parskip}{1.7ex plus 0.5ex minus 0.5ex} 16 | \renewcommand{\baselinestretch}{1.02} 17 | 18 | % see LaTeX Companion page 62 19 | \setlength{\topsep}{-0.0\parskip} 20 | \setlength{\partopsep}{-0.5\parskip} 21 | \setlength{\itemindent}{0.0in} 22 | \setlength{\listparindent}{0.0in} 23 | 24 | % see LaTeX Companion page 26 25 | % these are copied from /usr/local/teTeX/share/texmf/tex/latex/base/book.cls 26 | % all I changed is afterskip 27 | 28 | \makeatletter 29 | 30 | \renewcommand{\section}{\@startsection 31 | {section} {1} {0mm}% 32 | {-3.5ex \@plus -1ex \@minus -.2ex}% 33 | {0.7ex \@plus.2ex}% 34 | {\normalfont\Large\bfseries}} 35 | \renewcommand\subsection{\@startsection {subsection}{2}{0mm}% 36 | {-3.25ex\@plus -1ex \@minus -.2ex}% 37 | {0.3ex \@plus .2ex}% 38 | {\normalfont\large\bfseries}} 39 | \renewcommand\subsubsection{\@startsection {subsubsection}{3}{0mm}% 40 | {-3.25ex\@plus -1ex \@minus -.2ex}% 41 | {0.3ex \@plus .2ex}% 42 | {\normalfont\normalsize\bfseries}} 43 | 44 | % The following line adds a little extra space to the column 45 | % in which the Section numbers appear in the table of contents 46 | \renewcommand{\l@section}{\@dottedtocline{1}{1.5em}{3.0em}} 47 | \setcounter{tocdepth}{1} 48 | 49 | \makeatother 50 | 51 | \newcommand{\beforefig}{\vspace{1.3\parskip}} 52 | \newcommand{\afterfig}{\vspace{-0.2\parskip}} 53 | 54 | \newcommand{\beforeverb}{\vspace{0.6\parskip}} 55 | \newcommand{\afterverb}{\vspace{0.6\parskip}} 56 | 57 | \newcommand{\adjustpage}[1]{\enlargethispage{#1\baselineskip}} 58 | 59 | 60 | % Note: the following command seems to cause problems for Acroreader 61 | % on Windows, so for now I am overriding it. 62 | %\newcommand{\clearemptydoublepage}{ 63 | % \newpage{\pagestyle{empty}\cleardoublepage}} 64 | \newcommand{\clearemptydoublepage}{\cleardoublepage} 65 | 66 | %\newcommand{\blankpage}{\pagestyle{empty}\vspace*{1in}\newpage} 67 | \newcommand{\blankpage}{\vspace*{1in}\newpage} 68 | 69 | % HEADERS 70 | 71 | \renewcommand{\chaptermark}[1]{\markboth{#1}{}} 72 | \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}{}} 73 | 74 | \lhead[\fancyplain{}{\bfseries\thepage}]% 75 | {\fancyplain{}{\bfseries\rightmark}} 76 | \rhead[\fancyplain{}{\bfseries\leftmark}]% 77 | {\fancyplain{}{\bfseries\thepage}} 78 | \cfoot{} 79 | 80 | \pagestyle{fancyplain} 81 | 82 | 83 | % turn off the rule under the header 84 | %\setlength{\headrulewidth}{0pt} 85 | 86 | % the following is a brute-force way to prevent the headers 87 | % from getting transformed into all-caps 88 | \renewcommand\MakeUppercase{} 89 | 90 | % Exercise environment 91 | \newtheoremstyle{myex}% name 92 | {9pt}% Space above 93 | {9pt}% Space below 94 | {}% Body font 95 | {}% Indent amount (empty = no indent, \parindent = para indent) 96 | {\bfseries}% Thm head font 97 | {}% Punctuation after thm head 98 | {0.5em}% Space after thm head: " " = normal interword space; 99 | % \newline = linebreak 100 | {}% Thm head spec (can be left empty, meaning `normal') 101 | 102 | \theoremstyle{myex} 103 | -------------------------------------------------------------------------------- /localdef.py: -------------------------------------------------------------------------------- 1 | import plasTeX.Base as Base 2 | 3 | def idgen(): 4 | """ Generate a unique ID """ 5 | i = 1 6 | while 1: 7 | yield 'a%.10d' % i 8 | i += 1 9 | 10 | idgen = idgen() 11 | 12 | class Eqn(Base.Command): 13 | args = 'self' 14 | 15 | class Anchor(Base.Command): 16 | args = 'label:str' 17 | def invoke(self, tex): 18 | Base.Command.invoke(self, tex) 19 | self.ownerDocument.context.label(self.attributes['label'], self) 20 | 21 | class exercise(Base.Environment): 22 | counter = 'exercise' 23 | 24 | class index(Base.Command): 25 | args = 'termstring' 26 | 27 | def setEntry(self, s, seetype=0): 28 | # TYPE_NORMAL = 0 29 | # TYPE_SEE = 1 30 | # TYPE_SEEALSO = 2 31 | if type(s) != type(''): 32 | s = s.textContent 33 | if s.count('!'): 34 | priterm, secterm = s.split('!') 35 | if priterm.count('@'): 36 | prisort, primary = priterm.split('@') 37 | else: 38 | prisort, primary = None, priterm 39 | if secterm.count('@'): 40 | secsort, secondary = secterm.split('@') 41 | else: 42 | secsort, secondary = None, secterm 43 | elif s.count('@'): 44 | prisort, primary = s.split('@') 45 | secsort, secondary = None, None 46 | else: 47 | prisort, primary = None, s 48 | secsort, secondary = None, None 49 | 50 | # if secondary: 51 | # self.ownerDocument.userdata.setdefault('index', []).append(\ 52 | # Base.IndexEntry([primary, secondary], self, [prisort, secsort], None, type=seetype)) 53 | # else: 54 | # self.ownerDocument.userdata.setdefault('index', []).append(\ 55 | # Base.IndexEntry([primary], self, [prisort], None, type=seetype)) 56 | return prisort, primary, secsort, secondary 57 | 58 | def invoke(self, tex): 59 | Base.Command.invoke(self, tex) 60 | self.ownerDocument.context.label(idgen.next(), self) 61 | p0,p1,s0,s1 = self.setEntry(self.attributes['termstring']) 62 | if p0: 63 | self.prisort = '%s' % p0 64 | if p1: 65 | self.primary = '%s' % p1 66 | if s0: 67 | self.secsort = '%s' % s0 68 | if s1: 69 | self.secondary = '%s' % s1 70 | 71 | class scriptN(Base.Command): 72 | unicode = u'\U0001D4A9' 73 | 74 | class uxbar(Base.Command): pass 75 | class uybar(Base.Command): pass 76 | class unhat(Base.Command): pass 77 | class ule(Base.Command): pass 78 | class minus(Base.Command): pass 79 | class lowast(Base.Command): pass 80 | class Erdos(Base.Command): pass 81 | 82 | -------------------------------------------------------------------------------- /next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/next.png -------------------------------------------------------------------------------- /thinkpython_italian.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/thinkpython_italian.pdf -------------------------------------------------------------------------------- /up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AllenDowney/ThinkPythonItalian/8ebdb5b6f93baa8e95928cabe66c01af1d0a9f70/up.png --------------------------------------------------------------------------------