FixedPoint

FixedPoint[f, expr] applies f to expr until UnsameQ applied to the two most recent results returns False.

Attributes[FixedPoint] := {Protected}

Simple examples

In[1]:= FixedPoint[Function[D[Slot[1], x]], x^3]
Out[1]= 0