Both sides previous revision Previous revision Next revision | Previous revision |
183_notes:modeling_with_vpython [2022/11/14 15:49] – 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> |
t = t + dt | t = t + dt |
print('t = ', t, 's') | print('t = ', t, 's') |
| |
</code> | </code> |