pendulum.nbt 131 B

1234
  1. fn oscillation_time(length: Length) -> Time =
  2. 2 pi × sqrt(length / gravity)
  3. assert_eq(oscillation_time(30 cm), 1.1 s, 0.1 s)