Procedure
calculate-period
Divide the elapsed time by the number of full swings.
- Inputs
elapsed,swings- Called by
- Observe
- Used in
- Observe:
calculate-periodby assistant, withelapsedfrominformation.large-swing.elapsed,swingsfrominformation.large-swing.swing-count, intoinformation.large-swing.period - Observe:
calculate-periodby assistant, withelapsedfrominformation.small-swing.elapsed,swingsfrominformation.small-swing.swing-count, intoinformation.small-swing.period
- Observe:
Method text
to calculate-period :elapsed :swings [
about "Divide the elapsed time by the number of full swings."
output :elapsed / :swings
]