<div>"""</div><div>non-axial: 10 FF + 2 is the classic CCP number</div><div>sequence (OEIS A005901).</div><div><br></div><div>Here we bring out the +2 associated with polar</div><div>vertexes by means of function composition, applied</div>
<div>using decorator syntax (@)</div><div><br></div><div>[12, 42, 92, 162, 252, 362, 492, 642, 812, 1002]</div><div><br></div><div>Note how a "double decorator" makes sense</div><div>as well (the output function is fed back in</div>
<div>to compose and output once again ala g(g(f(x)).</div><div><br></div><div>[4, 5, 6, 7, 8, 9, 10, 11, 12, 13]</div><div><br></div><div>brainstorming posters for Pycon / Havana; Pycon / Ukraine</div><div>by <a href="http://4dsolutions.net">4dsolutions.net</a></div>
<div><br></div><div>Bibliography:</div><div><br></div><div>The King of Infinite Space (bio of HSM Coxeter)</div><div>Proof of 10FF + 2 (NCLB project)</div><div><br></div><div>Xtals 101 (<a href="http://4dsolutions.net/ocn/xtals101.html">4dsolutions.net/ocn/xtals101.html</a>)</div>
<div>"""</div><div><br></div><div>def compose( f ):</div><div> global g</div><div> return lambda x: g( f (x) )</div><div><br></div><div>def g(x): return x + 2</div><div><br></div><div>@compose</div>
<div>def nonaxial(n): return 10 * n * n</div><div><br></div><div>@compose</div><div>@compose</div><div>def identity(x): return x</div><div><br></div><div><br></div><div>def test():</div><div> print ( [ nonaxial(x) for x in range(1, 11) ] )</div>
<div> print ( [ identity(x) for x in range(10) ] )</div><div><br></div><div>if __name__ == "__main__":</div><div> test()</div><div> </div><div><br></div><div><br></div>