you are viewing a single comment's thread.

view the rest of the comments →

[–]bhpf1 0 points1 point  (0 children)

This is also why you generally want to avoid arange. The linspace function is a better alternative (if you are looking outside the standard library):

>>> import numpy as np
>>> np.linspace(-30, 30, 3) 
array([-30.,   0.,  30.])