diff options
Diffstat (limited to 'numpy/lib/scimath.py')
-rw-r--r-- | numpy/lib/scimath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/scimath.py b/numpy/lib/scimath.py index 0d765fa20..269d332bf 100644 --- a/numpy/lib/scimath.py +++ b/numpy/lib/scimath.py @@ -328,7 +328,7 @@ def log2(x): array([ 2.+4.5324j, 3.+4.5324j, 3.+0.j ]) """ x = _fix_real_lt_zero(x) - return nx.log(x)/_ln2 + return nx.log2(x) def power(x, p): """Return x**p. |