diff --git a/src/sage/combinat/fsm_fourier.pyx b/src/sage/combinat/fsm_fourier.pyx index 1bcbeffa3d0..5fe54e5dc89 100644 --- a/src/sage/combinat/fsm_fourier.pyx +++ b/src/sage/combinat/fsm_fourier.pyx @@ -409,24 +409,21 @@ def _reduce_resolution_(data, x_min, x_max, resolution): such that `y_\mathrm{min}\le y\le y_\mathrm{max}` and `0\le x-x'< (x_\mathrm{max}-x_\mathrm{min})/\mathit{resolution}`. - A list plot of the original list thus corresponds to plot of the vertical line - segments defined by the output. + A list plot of the original list thus corresponds to plot of the + vertical line segments defined by the output. - EXAMPLE:: + EXAMPLES:: sage: from sage.combinat.fsm_fourier import _reduce_resolution_ # optional - arb sage: _reduce_resolution_(((i/10, i) for i in range(10)), # optional - arb ....: 0, 1, 2) [(0.0, 0, 4), (0.5, 5, 9)] - sage: _reduce_resolution_(((1 - i/10, i) for i in range(1, 11)), # optional - arb ....: 0, 1, 2) [(0.0, 6, 10), (0.5, 1, 5)] - sage: _reduce_resolution_(((0, 2), (0.2, 1), (0.4, 0), # optional - arb ....: (0.6, 1.5), (0.8, 3)), 0, 1, 2) [(0.0, 0, 2), (0.5, 1.50000000000000, 3)] - sage: _reduce_resolution_([(0, 10)], # optional - arb ....: 0, 1, 2) [(0.0, 10, 10)]