2010/12/30 K.-Michael Aye <[email protected]>:
> I'm a bit puzzled that there seems just no way to cleanly code an
> interval with evenly spaced numbers that includes the stop point given?
> linspace offers to include the stop point, but arange does not?
> Am I missing something? (I am aware, that I could do
> arange(9,15.0001,0.1) but that's what I want to avoid!)

Use numpy.linspace(9, 15, 7 * 10 + 1).  FYI, there is also numpy.logspace().

Friedrich
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to