Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy arange number of elements

>>> import numpy as np
>>> np.linspace(start=0, stop=7.5, num=4)
array([ 0. ,  2.5,  5. ,  7.5])
>>> list(_)
[0.0, 2.5, 5.0, 7.5]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #arange #number #elements
ADD COMMENT
Topic
Name
9+5 =