def test_mathtools_cumulative_products_01(): r'''Returns list of the cumulative products of the elements in input. ''' assert mathtools.cumulative_products([1, 2, 3]) == [1, 2, 6] assert mathtools.cumulative_products([10, -9, -8]) == [10, -90, 720] assert mathtools.cumulative_products([0, 0, 0, 5]) == [0, 0, 0, 0] assert mathtools.cumulative_products([-10, 10, -10, 10]) == \ [-10, -100, 1000, 10000]
def prolation(self): r'''Prolation governing component. Returns multiplier. ''' prolations = [durationtools.Multiplier(1)] + self._prolations products = mathtools.cumulative_products(prolations) return products[-1]
def prolation(self): r'''Gets prolation. Returns multiplier. ''' prolations = [durationtools.Multiplier(1)] + self._prolations products = mathtools.cumulative_products(prolations) return products[-1]
def prolation(self): r"""Prolation governing component. Returns multiplier. """ prolations = [durationtools.Multiplier(1)] + self._prolations products = mathtools.cumulative_products(prolations) return products[-1]
def prolation(self): r'''Gets prolation. Returns multiplier. ''' import abjad prolations = [abjad.Multiplier(1)] + self._prolations products = mathtools.cumulative_products(prolations) return products[-1]
def prolation(self): r'''Prolation of rhythm tree node. Returns multiplier. ''' return mathtools.cumulative_products(self.prolations)[-1]