At 03:26 AM 11/25/2007, Fredrik Johansson wrote: >On Nov 25, 2007 9:00 AM, Dick Moores <[EMAIL PROTECTED]> wrote: > > Fredrik, > > > > I'm afraid I'm just too dumb to see how to use your first suggestion > > of cached_factorials. Where do I put it and def()? Could you show me, > > even on-line, what to do? <http://py77.python.pastebin.com/f48e4151c> > > You (or anyone) can submit an amendment to my code using the textbox. > > > > I did make the denom change, and see that it does improve the speed a bit. > >I edited the pastebin code, see: http://py77.python.pastebin.com/m6b2b34b7 > >Fredrik
Wow. your f() is ingenious, Frederik. Thanks very much. Any more tricks up your sleeve? You did say a post or so ago, "Further improvements are possible." Dick -- http://mail.python.org/mailman/listinfo/python-list