summaryrefslogtreecommitdiff
path: root/numpy/core/function_base.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2017-06-10 15:56:14 +1200
committerRalf Gommers <ralf.gommers@gmail.com>2017-06-10 18:19:17 +1200
commit34075a54e7aa10e80d41ef33ec7102292ecff0d5 (patch)
tree537ce22035ad4a22e7eba29720124b5eb82d4574 /numpy/core/function_base.py
parentfa913a8ea6a8b363962dec6d656049a1371b53d9 (diff)
downloadnumpy-34075a54e7aa10e80d41ef33ec7102292ecff0d5.tar.gz
DOC: BLD: fix lots of Sphinx warnings/errors.
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r--numpy/core/function_base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py
index d6757bb74..7098b8b91 100644
--- a/numpy/core/function_base.py
+++ b/numpy/core/function_base.py
@@ -292,13 +292,13 @@ def geomspace(start, stop, num=50, endpoint=True, dtype=None):
Negative, decreasing, and complex inputs are allowed:
- >>> geomspace(1000, 1, num=4)
+ >>> np.geomspace(1000, 1, num=4)
array([ 1000., 100., 10., 1.])
- >>> geomspace(-1000, -1, num=4)
+ >>> np.geomspace(-1000, -1, num=4)
array([-1000., -100., -10., -1.])
- >>> geomspace(1j, 1000j, num=4) # Straight line
+ >>> np.geomspace(1j, 1000j, num=4) # Straight line
array([ 0. +1.j, 0. +10.j, 0. +100.j, 0.+1000.j])
- >>> geomspace(-1+0j, 1+0j, num=5) # Circle
+ >>> np.geomspace(-1+0j, 1+0j, num=5) # Circle
array([-1.00000000+0.j , -0.70710678+0.70710678j,
0.00000000+1.j , 0.70710678+0.70710678j,
1.00000000+0.j ])