summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 31aafda15..5453f52fa 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -187,7 +187,7 @@ def _hist_bin_sturges(x):
-------
h : An estimate of the optimal bin width for the given data.
"""
- return x.ptp() / np.ceil(np.log2(x.size) + 1.0)
+ return x.ptp() / (np.log2(x.size) + 1.0)
def _hist_bin_rice(x):