Answers for "to create an array with values that are spaced linearly in a specified interval"

0

to create an array with values that are spaced linearly in a specified interval

np.linspace(0, 10, num=5)
array([ 0. ,  2.5,  5. ,  7.5, 10. ])
Posted by: Guest on April-05-2022

Code answers related to "to create an array with values that are spaced linearly in a specified interval"

Python Answers by Framework

Browse Popular Code Answers by Language