Split off 2013-10-04 https://github.com/johnkerl/scripts-math and https://github.com/johnkerl/scripts-misc