NumPy
numpy.org › doc › stable › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v2.5 Manual
>>> import matplotlib.pyplot as plt >>> N = 10 >>> x1 = np.logspace(0.1, 1, N, endpoint=True) >>> x2 = np.logspace(0.1, 1, N, endpoint=False) >>> y = np.zeros(N) >>> plt.plot(x1, y, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) (-0.5, 1) >>> plt.show()
03:45
NumPy logspace() Tutorial - Create Logarithmically Spaced Arrays ...
31:19
ARANGE( ), LINSPACE( ), LOGSPACE( ) IN NUMPY (ARRAYS WITH NUMERICAL ...
21:48
NumPy Lec 35 - np.logspace function - another function similar ...
11:51
NumPy Linspace Function | Creating NumPy Arrays | Python ...
Machine Learning Tutorial Python NumPy : 5. Array Creation ...
NumPy
numpy.org › devdocs › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v2.6.dev0 Manual
>>> import matplotlib.pyplot as plt >>> N = 10 >>> x1 = np.logspace(0.1, 1, N, endpoint=True) >>> x2 = np.logspace(0.1, 1, N, endpoint=False) >>> y = np.zeros(N) >>> plt.plot(x1, y, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) (-0.5, 1) >>> plt.show()
Programiz
programiz.com › python-programming › numpy › methods › logspace
NumPy logspace() | Programiz
August 30, 2023 - The logspace() method creates an array with evenly spaced numbers on a log scale.
NumPy
numpy.org › doc › 2.1 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v2.1 Manual
>>> import matplotlib.pyplot as plt >>> N = 10 >>> x1 = np.logspace(0.1, 1, N, endpoint=True) >>> x2 = np.logspace(0.1, 1, N, endpoint=False) >>> y = np.zeros(N) >>> plt.plot(x1, y, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) (-0.5, 1) >>> plt.show()
NumPy
numpy.org › doc › 2.0 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v2.0 Manual
>>> import matplotlib.pyplot as plt >>> N = 10 >>> x1 = np.logspace(0.1, 1, N, endpoint=True) >>> x2 = np.logspace(0.1, 1, N, endpoint=False) >>> y = np.zeros(N) >>> plt.plot(x1, y, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) (-0.5, 1) >>> plt.show()
NumPy
numpy.org › doc › 2.3 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v2.3 Manual
>>> import matplotlib.pyplot as plt >>> N = 10 >>> x1 = np.logspace(0.1, 1, N, endpoint=True) >>> x2 = np.logspace(0.1, 1, N, endpoint=False) >>> y = np.zeros(N) >>> plt.plot(x1, y, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) (-0.5, 1) >>> plt.show()
NumPy
numpy.org › doc › 1.20 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v1.20 Manual
numpy.logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None, axis=0)[source]¶
NumPy
numpy.org › doc › 1.23 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v1.23 Manual
numpy.logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None, axis=0)[source]#
SciPy
docs.scipy.org › doc › › numpy-1.9.0 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v1.9 Manual
numpy.logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None)[source]¶ · Return numbers spaced evenly on a log scale. In linear space, the sequence starts at base ** start (base to the power of start) and ends with base ** stop (see endpoint below).
NumPy
numpy.org › doc › 1.24 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v1.24 Manual
>>> import matplotlib.pyplot as plt >>> N = 10 >>> x1 = np.logspace(0.1, 1, N, endpoint=True) >>> x2 = np.logspace(0.1, 1, N, endpoint=False) >>> y = np.zeros(N) >>> plt.plot(x1, y, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) (-0.5, 1) >>> plt.show()
SciPy
docs.scipy.org › doc › numpy-1.15.0 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v1.15 Manual
numpy.logspace(start, stop, num=50, endpoint=True, base=10.0, dtype=None)[source]¶ · Return numbers spaced evenly on a log scale. In linear space, the sequence starts at base ** start (base to the power of start) and ends with base ** stop (see endpoint below).
SciPy
docs.scipy.org › doc › › numpy-1.6.0 › reference › generated › numpy.logspace.html
numpy.logspace — NumPy v1.6 Manual (DRAFT)
numpy.logspace(start, stop, num=50, endpoint=True, base=10.0)¶ · Return numbers spaced evenly on a log scale. In linear space, the sequence starts at base ** start (base to the power of start) and ends with base ** stop (see endpoint below). See also · arange ·
TutorialsPoint
tutorialspoint.com › numpy › numpy_logspace_function.htm
Numpy logspace() Function
The numpy.logspace() function allows us to generate a NumPy array of values evenly spaced on a logarithmic scale.