Articles → Numpy → linspace function in NumPy

linspace function in NumPy






Purpose





Click to Enlarge




Click to Enlarge


Syntax


linspace(start, end, number_of_evenly_spaced_numbers)



Example


import numpy as np

print(np.linspace(0,150,3))
print(np.linspace(0,150,4))





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, March 20, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250