pendulum.nbt 126 B

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