[Numpy-svn] r3311 - trunk/numpy/lib

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Oct 11 15:56:30 CDT 2006


Author: oliphant
Date: 2006-10-11 15:56:27 -0500 (Wed, 11 Oct 2006)
New Revision: 3311

Modified:
   trunk/numpy/lib/scimath.py
Log:
Fix some name-space errors in scimath.

Modified: trunk/numpy/lib/scimath.py
===================================================================
--- trunk/numpy/lib/scimath.py	2006-10-11 19:38:06 UTC (rev 3310)
+++ trunk/numpy/lib/scimath.py	2006-10-11 20:56:27 UTC (rev 3311)
@@ -54,13 +54,13 @@
     """
     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 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)



More information about the Numpy-svn mailing list