what_if_11.nbt 478 B

123456789101112131415161718
  1. # Droppings
  2. #
  3. # If you went outside and lay down on your back with your mouth open, how long
  4. # would you have to wait until a bird pooped in it?
  5. #
  6. # https://what-if.xkcd.com/11/
  7. @aliases(birds)
  8. unit bird
  9. unit mouth
  10. unit poop
  11. let earth_radius = 6371 km
  12. let frequency = (300 billion birds / 4 pi earth_radius^2) × (1 poop / bird / hour) × (16 hours / day) × (1 mouth / poop) × (15 cm^2 / mouth)
  13. let period = 1 / frequency
  14. print("It happens once every ~{period -> year}s")