[Scipy-svn] r2994 - trunk/Lib/optimize
scipy-svn at scipy.org
scipy-svn at scipy.org
Sun May 13 15:54:35 EDT 2007
Author: ondrej
Date: 2007-05-13 14:54:33 -0500 (Sun, 13 May 2007)
New Revision: 2994
Modified:
trunk/Lib/optimize/nonlin.py
Log:
Documentation updated (reflecting that the broyden methods are imported in
optimize)
Modified: trunk/Lib/optimize/nonlin.py
===================================================================
--- trunk/Lib/optimize/nonlin.py 2007-05-13 19:49:50 UTC (rev 2993)
+++ trunk/Lib/optimize/nonlin.py 2007-05-13 19:54:33 UTC (rev 2994)
@@ -16,8 +16,8 @@
c = 0.01
return -d*numpy.array(x)-c*numpy.array(x)**3
-from scipy.optimize import nonlin
-x = nonlin.broyden2(F,[1,1,1,1,1])
+from scipy import optimize
+x = optimize.broyden2(F,[1,1,1,1,1])
All solvers have the parameter iter (the number of iterations to compute), some
of them have other parameters of the solver, see the particular solver for
More information about the Scipy-svn
mailing list