Demo...
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
</style> | |
<button id="zoomin">Zoom in</button> | |
<button id="zoomout">Zoom out</button> | |
<script> |
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
""" | |
Compute multinomial coefficients iteratively. | |
Probably needs some more testing... | |
Example: the sum of 1000 6-sided dice: | |
$ time python multcoeff.py 6 1000 > out | |
Pascal's triangle: |