Write a NumPy program to create a vector of length 10 with values evenly distributed between 5 and 50.
import numpy as np v = np.linspace(10, 49, 5) print("Length 10 with values evenly distributed between 5 and 50:") print(v)
Sample Output:
Length 10 with values evenly distributed between 5 and 50: [ 10. 19.75 29.5 39.25 49. ]
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer