generic algorithm to force range to go through zero
<p>I'm looking for a generic algorithm which, given the range values <code>start</code> and <code>end</code> will generate a list of numbers, but <strong>the numbers must go through zero.</strong>.
Here's my current code:</p>

<pre><code>end = 78
start = -1 * end
step_size = 16
numbers = range(start, end+step_size, step_size)

$ numbers
Out[90]: [-78, -62, -46, -30, -14, 2, 18, 34, 50, 66, 82]
</code></pre>

<p>so in this particular case, I would subtract 2 from each number, so that the numbers have one zero value. But how could I do this more generally? I'm doing this to calculate the y-tic locations of a graph, and therefore I want them to go through zero once.</p>
