Python
numpy

numpy.linspace

B = np.linspace(0,1,11,endpoint=True)
print(B)
print(B[1:])
A = np.linspace(0,1,11,endpoint=False)
print(A)
print(A[1:])
v = A[0]
print(type(v))
A = np.linspace(1000,1001,11,endpoint=False)
print(A)
print(A[1:])
[ 0.   0.1  0.2  0.3  0.4  0.5  0.6  0.7  0.8  0.9  1. ]
[ 0.1  0.2  0.3  0.4  0.5  0.6  0.7  0.8  0.9  1. ]
[ 0.          0.09090909  0.18181818  0.27272727  0.36363636  0.45454545
  0.54545455  0.63636364  0.72727273  0.81818182  0.90909091]
[ 0.09090909  0.18181818  0.27272727  0.36363636  0.45454545  0.54545455
  0.63636364  0.72727273  0.81818182  0.90909091]
<type 'numpy.float64'>
[ 1000.          1000.09090909  1000.18181818  1000.27272727  1000.36363636
  1000.45454545  1000.54545455  1000.63636364  1000.72727273  1000.81818182
  1000.90909091]
[ 1000.09090909  1000.18181818  1000.27272727  1000.36363636  1000.45454545
  1000.54545455  1000.63636364  1000.72727273  1000.81818182  1000.90909091]
  • 0.09090909*11 = 0.99999999

Refs.