You are right! So sorry! I copied the wrong program into my note. Here is a correct version. (Again, Peter's article is fun to read...)
(defun ff(n m) (if (<= n m) n (*(ff n (+ m m))(ff (- n m) (+ m m))))) For this one, (ff 10 1) computes 10! and does the following multiplications. (ff 10 1) (* 10 2) (* 20 6) (* 8 4) (* 120 32) (* 9 1) (* 9 5) (* 7 3) (* 45 21) (* 3840 945) 3628800 The effect is far more pronounced for 100!. There are other fun hacks though. I hope you have the time and interest to try this on python. RJF -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/bdeff218-adc0-4baa-b611-5d585a439ac0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
