python program to create an array with 5 equal points using linspace() function
python program to create an array
with 5 equal points using linspace() function
==========================================================================
import numpy as np
a = np.linspace(0,10,5)
print('a=',a)
output
arr.py
a = [0 2.5 5. 7.5 10. ]
No comments:
Post a Comment