Answers for "linspace in python numpy"

0

numpy linspace

np.linspace(0, 10, 5)  # evenly-spaced 5 numbers in [0, 10]
# [ 0. ,  2.5,  5. ,  7.5, 10. ]
Posted by: Guest on February-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language