[Numpy-discussion] Was the range() function ever created?

Juan Nunez-Iglesias jni.soma at gmail.com
Sat May 25 00:03:08 EDT 2019


On Sat, 25 May 2019, at 1:49 PM, C W wrote:
> I can't be the first person who asked about range() that calculates the *actual* range of two numbers.

Based on your mention of matlab's `range`, I think you're looking for numpy.ptp. 

https://docs.scipy.org/doc/numpy/reference/generated/numpy.ptp.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20190525/38a090fd/attachment.html>


More information about the NumPy-Discussion mailing list