Both sides previous revision Previous revision Next revision | Previous revision |
183_notes:modeling_with_vpython [2022/11/14 17:41] – valen176 | 183_notes:modeling_with_vpython [2022/12/01 19:39] (current) – valen176 |
---|
==== Lecture Video ==== | ==== Lecture Video ==== |
| |
{{youtube>7gKIQEtT7x4?large}} | {{youtube>vzof--LEJw4?large}} |
| |
| |
* [[183_notes:displacement_and_velocity#predicting_the_motion_of_objects|Update the position using this new momentum (velocity).]] | * [[183_notes:displacement_and_velocity#predicting_the_motion_of_objects|Update the position using this new momentum (velocity).]] |
| |
Note that in this example, the cart was moving at constant velocity, so we didn't need to do much step 4 above. In future weeks, there will be examples of how to use Glowscript to model motion when there is net force. | Note that in this example, the cart was moving at constant velocity, so we didn't need to do much step 4 above. In future weeks, there will be examples of how to use Glowscript to model motion when there is nonzero net force. |
| |
<code python videoexample.py> | <code python videoexample.py> |
print('t = ', t, 's') | print('t = ', t, 's') |
</code> | </code> |
| |
| |
<iframe src="https://trinket.io/embed/glowscript/ec01c3ff58" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe> | |
| |