This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
// This is a new closure. If things that happen here don't have side-effects on outside scope, | |
// then whatever happens here will not be visible outside of it. | |
(function() { | |
// You can make closures inside of closure (inside of closures). Wee. | |
})(); | |
})(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
from operator import mul | |
def Q(n): | |
""" | |
Let Q(n) be the probability that | |
no two people have a common birthday. | |
""" |
NewerOlder