Greetings!

I can't seem to figure out how (elegantly) to make a function that is
the repeated composite of another. eg. Suppose I have a function f,
how do I get f*f*f*f...

In math, I could just f^n, in normal lambda calculus, I'd just use n.f
(church numeral), but in sage the only way I could come up with was
using a loop to generate "f(f(...(x)))" and then printing it and copy
pasting it to the end of "g=lambda x: " and using that (and even then,
when I used ~100 iterations, sage crashed). There's got to be a more
elegant way...

Thanks,

Christopher

PS. If your wondering why I'm doing this, have a look at
http://christopherolah.wordpress.com/2009/12/19/formation-of-escape-time-fractals/
, I'm making some really neat pictures of the formation of escape time
fractals!

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to