Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 18)
18.
What is the purpose of the numpy.linspace(start, stop, num) function?
Creates a list of integers from start to stop.
Generates a NumPy array with evenly spaced values from start to stop.
Computes the logarithm of each element in the array.
Rounds the elements of the array to the nearest integer.
Answer: Option
Explanation:
The numpy.linspace() function generates a NumPy array with evenly spaced values over a specified range.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.