Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Possible Duplicate:
How to nest my own “times” function to get powers

What I want to do is something like :


Basically, defining a function that maps a said function on an argument said number of times.

share|improve this question

marked as duplicate by Artes, The-Ever-Kid, Leonid Shifrin, rm -rf Dec 15 '12 at 14:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Take a look at Nest and NestList. reference.wolfram.com/mathematica/ref/NestList.html Don't forget to check NestWhile,NestWhileList, FixedPoint, FixedPointList. And this tutorial: reference.wolfram.com/mathematica/tutorial/… –  David Carraher Dec 15 '12 at 14:04
You can do e.g. Nest[Sin, x, 5], look at this mathematica.stackexchange.com/questions/7941/… –  Artes Dec 15 '12 at 14:06
Thank You guys... –  The-Ever-Kid Dec 15 '12 at 14:09

1 Answer 1

I get an easy one !!

Out[8]= Sin[Sin[Sin[Sin[Sin[Sin[Sin[Sin[Sin[Sin[x]]]]]]]]]]
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.