what_if_11.nbt 472 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. use extra::astronomy
  8. @aliases(birds)
  9. unit bird
  10. unit mouth
  11. unit poop
  12. let frequency = (300 billion birds / 4 π 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")