#NEWLINE# def decaying( start , decay ) : #NEWLINE# #INDENT# 'Return an iterator of exponentially decaying values.\n\n    The first value is ``start``. Every further value is obtained by multiplying\n    the last one by a factor of ``decay``.\n\n    Examples\n    --------\n\n    >>> from climin.schedule import decaying\n    >>> s = decaying(10, .9)\n    >>> [next(s) for i in range(5)]\n    [10.0, 9.0, 8.100000000000001, 7.290000000000001, 6.561]\n    ' #NEWLINE# return ( ( i * ( decay ** i ) ) for i in itertools . count ( 0 ) )