Popular recipes tagged "lattice"http://code.activestate.com/recipes/tags/lattice/popular/2011-07-07T07:07:59-07:00ActiveState Code RecipesLattice Multiplication (Python) 2011-07-07T07:07:59-07:00Thomas Lehmannhttp://code.activestate.com/recipes/users/4174477/http://code.activestate.com/recipes/577782-lattice-multiplication/ <p style="color: grey"> Python recipe 577782 by <a href="/recipes/users/4174477/">Thomas Lehmann</a> (<a href="/recipes/tags/lattice/">lattice</a>, <a href="/recipes/tags/multiplication/">multiplication</a>). </p> <p>The documentation in the function explains the algorithm but there are additional pages which provide additional visual help:</p> <ul> <li><a href="http://mathforum.org/library/drmath/view/52468.html" rel="nofollow">http://mathforum.org/library/drmath/view/52468.html</a></li> <li><a href="http://en.wikipedia.org/wiki/Multiplication_algorithm" rel="nofollow">http://en.wikipedia.org/wiki/Multiplication_algorithm</a></li> </ul> <p>The function can handle a string as well as a sequence of digits. The test function is just to have a basic verification.</p>