._pysketcher001.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <!--
  2. Automatically generated HTML file from DocOnce source
  3. (https://github.com/hplgit/doconce/)
  4. -->
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
  9. <meta name="description" content="Using Pysketcher to Create Principal Sketches of Physics Problems">
  10. <meta name="keywords" content="tree data structure,recursive function calls">
  11. <title>Using Pysketcher to Create Principal Sketches of Physics Problems</title>
  12. <!-- Bootstrap style: bootswatch_readable -->
  13. <link href="http://netdna.bootstrapcdn.com/bootswatch/3.1.1/readable/bootstrap.min.css" rel="stylesheet">
  14. <!-- not necessary
  15. <link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
  16. -->
  17. <style type="text/css">
  18. /* Add scrollbar to dropdown menus in bootstrap navigation bar */
  19. .dropdown-menu {
  20. height: auto;
  21. max-height: 400px;
  22. overflow-x: hidden;
  23. }
  24. </style>
  25. </head>
  26. <!-- tocinfo
  27. {'highest level': 1,
  28. 'sections': [('A first glimpse of Pysketcher', 1, None, '___sec0'),
  29. ('Basic construction of sketches', 2, None, '___sec1'),
  30. ('Basic drawing', 3, None, '___sec2'),
  31. ('Groups of objects', 3, None, '___sec3'),
  32. ('Changing line styles and colors', 3, None, '___sec4'),
  33. ('The figure composition as an object hierarchy',
  34. 3,
  35. None,
  36. '___sec5'),
  37. ('Animation: translating the vehicle', 3, None, '___sec6'),
  38. ('Animation: rolling the wheels',
  39. 3,
  40. 'sketcher:vehicle1:anim',
  41. 'sketcher:vehicle1:anim'),
  42. ('A simple pendulum',
  43. 1,
  44. 'sketcher:ex:pendulum',
  45. 'sketcher:ex:pendulum'),
  46. ('The basic physics sketch',
  47. 2,
  48. 'sketcher:ex:pendulum:basic',
  49. 'sketcher:ex:pendulum:basic'),
  50. ('The body diagram', 2, None, '___sec10'),
  51. ('Basic shapes', 1, None, '___sec11'),
  52. ('Axis', 2, None, '___sec12'),
  53. ('Distance with text', 2, None, '___sec13'),
  54. ('Rectangle', 2, None, '___sec14'),
  55. ('Triangle', 2, None, '___sec15'),
  56. ('Arc', 2, None, '___sec16'),
  57. ('Spring', 2, None, '___sec17'),
  58. ('Dashpot', 2, None, '___sec18'),
  59. ('Wavy', 2, None, '___sec19'),
  60. ('Stochastic curves', 2, None, '___sec20'),
  61. ('Inner workings of the Pysketcher tool', 1, None, '___sec21'),
  62. ('Example of classes for geometric objects',
  63. 2,
  64. None,
  65. '___sec22'),
  66. ('Simple geometric objects', 3, None, '___sec23'),
  67. ('Class curve', 3, None, '___sec24'),
  68. ('Compound geometric objects', 3, None, '___sec25'),
  69. ('Adding functionality via recursion', 2, None, '___sec26'),
  70. ('Basic principles of recursion', 3, None, '___sec27'),
  71. ('Explaining recursion', 3, None, '___sec28'),
  72. ('Scaling, translating, and rotating a figure',
  73. 2,
  74. 'sketcher:scaling',
  75. 'sketcher:scaling'),
  76. ('Scaling', 3, None, '___sec30'),
  77. ('Translation', 3, None, '___sec31'),
  78. ('Rotation', 3, None, '___sec32')]}
  79. end of tocinfo -->
  80. <body>
  81. <script type="text/x-mathjax-config">
  82. MathJax.Hub.Config({
  83. TeX: {
  84. equationNumbers: { autoNumber: "none" },
  85. extensions: ["AMSmath.js", "AMSsymbols.js", "autobold.js", "color.js"]
  86. }
  87. });
  88. </script>
  89. <script type="text/javascript"
  90. src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
  91. </script>
  92. <!-- Bootstrap navigation bar -->
  93. <div class="navbar navbar-default navbar-fixed-top">
  94. <div class="navbar-header">
  95. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
  96. <span class="icon-bar"></span>
  97. <span class="icon-bar"></span>
  98. <span class="icon-bar"></span>
  99. </button>
  100. <a class="navbar-brand" href="pysketcher.html">Using Pysketcher to Create Principal Sketches of Physics Problems</a>
  101. </div>
  102. <div class="navbar-collapse collapse navbar-responsive-collapse">
  103. <ul class="nav navbar-nav navbar-right">
  104. <li class="dropdown">
  105. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
  106. <ul class="dropdown-menu">
  107. <!-- navigation toc: --> <li><a href="._pysketcher002.html#___sec0" style="font-size: 80%;"><b>A first glimpse of Pysketcher</b></a></li>
  108. <!-- navigation toc: --> <li><a href="._pysketcher002.html#___sec1" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Basic construction of sketches</a></li>
  109. <!-- navigation toc: --> <li><a href="._pysketcher002.html#___sec2" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Basic drawing</a></li>
  110. <!-- navigation toc: --> <li><a href="._pysketcher002.html#___sec3" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Groups of objects</a></li>
  111. <!-- navigation toc: --> <li><a href="._pysketcher002.html#___sec4" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Changing line styles and colors</a></li>
  112. <!-- navigation toc: --> <li><a href="._pysketcher002.html#___sec5" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The figure composition as an object hierarchy</a></li>
  113. <!-- navigation toc: --> <li><a href="._pysketcher002.html#___sec6" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Animation: translating the vehicle</a></li>
  114. <!-- navigation toc: --> <li><a href="._pysketcher002.html#sketcher:vehicle1:anim" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Animation: rolling the wheels</a></li>
  115. <!-- navigation toc: --> <li><a href="._pysketcher003.html#sketcher:ex:pendulum" style="font-size: 80%;"><b>A simple pendulum</b></a></li>
  116. <!-- navigation toc: --> <li><a href="._pysketcher003.html#sketcher:ex:pendulum:basic" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;The basic physics sketch</a></li>
  117. <!-- navigation toc: --> <li><a href="._pysketcher003.html#___sec10" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;The body diagram</a></li>
  118. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec11" style="font-size: 80%;"><b>Basic shapes</b></a></li>
  119. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec12" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Axis</a></li>
  120. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec13" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Distance with text</a></li>
  121. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec14" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Rectangle</a></li>
  122. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec15" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Triangle</a></li>
  123. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec16" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Arc</a></li>
  124. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec17" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Spring</a></li>
  125. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec18" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Dashpot</a></li>
  126. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec19" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Wavy</a></li>
  127. <!-- navigation toc: --> <li><a href="._pysketcher004.html#___sec20" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Stochastic curves</a></li>
  128. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec21" style="font-size: 80%;"><b>Inner workings of the Pysketcher tool</b></a></li>
  129. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec22" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Example of classes for geometric objects</a></li>
  130. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec23" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simple geometric objects</a></li>
  131. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec24" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class curve</a></li>
  132. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec25" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compound geometric objects</a></li>
  133. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec26" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Adding functionality via recursion</a></li>
  134. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec27" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Basic principles of recursion</a></li>
  135. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec28" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Explaining recursion</a></li>
  136. <!-- navigation toc: --> <li><a href="._pysketcher005.html#sketcher:scaling" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;Scaling, translating, and rotating a figure</a></li>
  137. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec30" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scaling</a></li>
  138. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec31" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Translation</a></li>
  139. <!-- navigation toc: --> <li><a href="._pysketcher005.html#___sec32" style="font-size: 80%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rotation</a></li>
  140. </ul>
  141. </li>
  142. </ul>
  143. </div>
  144. </div>
  145. </div> <!-- end of navigation bar -->
  146. <div class="container">
  147. <p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p> <!-- add vertical space -->
  148. <a name="part0001"></a>
  149. <!-- !split -->
  150. <h2>
  151. Table of contents</h2>
  152. <p>
  153. <a href="._pysketcher002.html#___sec0"> A first glimpse of Pysketcher </a><br>
  154. &nbsp; &nbsp; &nbsp; <a href="._pysketcher002.html#___sec1"> Basic construction of sketches </a><br>
  155. <a href="._pysketcher003.html#sketcher:ex:pendulum"> A simple pendulum </a><br>
  156. &nbsp; &nbsp; &nbsp; <a href="._pysketcher003.html#sketcher:ex:pendulum:basic"> The basic physics sketch </a><br>
  157. &nbsp; &nbsp; &nbsp; <a href="._pysketcher003.html#___sec10"> The body diagram </a><br>
  158. <a href="._pysketcher004.html#___sec11"> Basic shapes </a><br>
  159. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec12"> Axis </a><br>
  160. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec13"> Distance with text </a><br>
  161. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec14"> Rectangle </a><br>
  162. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec15"> Triangle </a><br>
  163. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec16"> Arc </a><br>
  164. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec17"> Spring </a><br>
  165. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec18"> Dashpot </a><br>
  166. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec19"> Wavy </a><br>
  167. &nbsp; &nbsp; &nbsp; <a href="._pysketcher004.html#___sec20"> Stochastic curves </a><br>
  168. <a href="._pysketcher005.html#___sec21"> Inner workings of the Pysketcher tool </a><br>
  169. &nbsp; &nbsp; &nbsp; <a href="._pysketcher005.html#___sec22"> Example of classes for geometric objects </a><br>
  170. &nbsp; &nbsp; &nbsp; <a href="._pysketcher005.html#___sec26"> Adding functionality via recursion </a><br>
  171. &nbsp; &nbsp; &nbsp; <a href="._pysketcher005.html#sketcher:scaling"> Scaling, translating, and rotating a figure </a><br>
  172. </p>
  173. <p>
  174. <p>
  175. <!-- navigation buttons at the bottom of the page -->
  176. <ul class="pagination">
  177. <li><a href="._pysketcher000.html">&laquo;</a></li>
  178. <li><a href="._pysketcher000.html">1</a></li>
  179. <li class="active"><a href="._pysketcher001.html">2</a></li>
  180. <li><a href="._pysketcher002.html">3</a></li>
  181. <li><a href="._pysketcher003.html">4</a></li>
  182. <li><a href="._pysketcher004.html">5</a></li>
  183. <li><a href="._pysketcher005.html">6</a></li>
  184. <li><a href="._pysketcher002.html">&raquo;</a></li>
  185. </ul>
  186. <!-- ------------------- end of main content --------------- -->
  187. </div> <!-- end container -->
  188. <!-- include javascript, jQuery *first* -->
  189. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  190. <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
  191. <!-- Bootstrap footer
  192. <footer>
  193. <a href="http://..."><img width="250" align=right src="http://..."></a>
  194. </footer>
  195. -->
  196. </body>
  197. </html>