<p><br>
On Sep 24, 2011 2:59 PM, "Chris Angelico" <<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>> wrote:<br>
><br>
> On Sat, Sep 24, 2011 at 11:53 PM, Steven D'Aprano<br>
> <<a href="mailto:steve%2Bcomp.lang.python@pearwood.info">steve+comp.lang.python@pearwood.info</a>> wrote:<br>
> > #1 add multiples of the width to the starting value, 0.<br>
> ><br>
> > #2 subtract multiples of width from the ending value, 2.1.<br>
><br>
> #3, go half and half - generate the lower half by adding to the lower<br>
> bound, and the upper half by subtracting from the upper bound. Not</p>
<p>#4 the barycentric approach. </p>
<p>    ((n-i)*a + i*b)/n for i in range(n+1)</p>
<p>Gives you n+1 equally spaced values between a and b inclusive</p>
<p>Arnaud</p>