[Scipy-svn] r6561 - trunk/scipy/optimize

scipy-svn@scip... scipy-svn@scip...
Mon Jun 21 15:55:39 CDT 2010


Author: warren.weckesser
Date: 2010-06-21 15:55:39 -0500 (Mon, 21 Jun 2010)
New Revision: 6561

Modified:
   trunk/scipy/optimize/zeros.py
Log:
Tiny code optimization.

Modified: trunk/scipy/optimize/zeros.py
===================================================================
--- trunk/scipy/optimize/zeros.py	2010-06-21 19:45:50 UTC (rev 6560)
+++ trunk/scipy/optimize/zeros.py	2010-06-21 20:55:39 UTC (rev 6561)
@@ -103,7 +103,7 @@
                 msg = "derivative was zero."
                 warnings.warn(msg, RuntimeWarning)
                 return p0
-            p = p0 - func(*myargs)/fprime(*myargs)
+            p = p0 - func(*myargs) / fder
             if abs(p - p0) < tol:
                 return p
             p0 = p



More information about the Scipy-svn mailing list