Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, R. M. 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. Don't forget to check NestWhile,NestWhileList, FixedPoint, FixedPointList. And this tutorial:… – DavidC Dec 15 '12 at 14:04
You can do e.g. Nest[Sin, x, 5], look at this… – Artes Dec 15 '12 at 14:06
Thank You guys... – The-Ever-Kid Dec 15 '12 at 14:09

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.