summaryrefslogtreecommitdiff
path: root/numpy/lib/scimath.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-10-11 20:56:27 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-10-11 20:56:27 +0000
commit7338a7ecfb84fe1eaf0a887dcb523e852a12b4aa (patch)
tree3a975aa5dc9f83029d9ee43c922ad2833f30c75d /numpy/lib/scimath.py
parenta6f8d27fbc1dbda82e89a77b5879c86f5952cc18 (diff)
downloadnumpy-7338a7ecfb84fe1eaf0a887dcb523e852a12b4aa.tar.gz
Fix some name-space errors in scimath.
Diffstat (limited to 'numpy/lib/scimath.py')
-rw-r--r--numpy/lib/scimath.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/lib/scimath.py b/numpy/lib/scimath.py
index cd3bea446..4f5a3ec0c 100644
--- a/numpy/lib/scimath.py
+++ b/numpy/lib/scimath.py
@@ -54,13 +54,13 @@ def logn(n, x):
"""
x = _fix_real_lt_zero(x)
n = _fix_real_lt_zero(n)
- return log(x)/log(n)
+ return nx.log(x)/nx.log(n)
def log2(x):
""" Take log base 2 of x.
"""
x = _fix_real_lt_zero(x)
- return log(x)/_ln2
+ return nx.log(x)/_ln2
def power(x, p):
x = _fix_real_lt_zero(x)
@@ -68,12 +68,12 @@ def power(x, p):
def arccos(x):
x = _fix_real_abs_gt_1(x)
- return arccos(x)
+ return nx.arccos(x)
def arcsin(x):
x = _fix_real_abs_gt_1(x)
- return arcsin(x)
+ return nx.arcsin(x)
def arctanh(x):
x = _fix_real_abs_gt_1(x)
- return arctanh(x)
+ return nx.arctanh(x)