Procedure

calculate-period

Divide the elapsed time by the number of full swings.

Inputs
elapsed, swings
Called by
Observe
Used in
  • Observe: calculate-period by assistant, with elapsed from information.large-swing.elapsed, swings from information.large-swing.swing-count, into information.large-swing.period
  • Observe: calculate-period by assistant, with elapsed from information.small-swing.elapsed, swings from information.small-swing.swing-count, into information.small-swing.period

Method text

to calculate-period :elapsed :swings [
  about "Divide the elapsed time by the number of full swings."
  output :elapsed / :swings
]