http://blog.sigfpe.com/2006/11/from-l-theorem-to-spreadsheet...
(I completely missed your GitHub link the first time I read this comment)