diff scripts/optimization/fsolve.m @ 13027:b9a89ca0fb75

prevent optimization functions from setting ans in workspace at startup * fminbnd.m, fminunc.m, fsolve.m, fzero.m, lsqnonneg.m, pqpnonneg.m, qp.m: Discard result from call to __all_opt__ in PKG_ADD command.
author John W. Eaton <jwe@octave.org>
date Mon, 29 Aug 2011 13:07:22 -0400
parents c792872f8942
children 63463570d9fe
line wrap: on
line diff
--- a/scripts/optimization/fsolve.m	Mon Aug 29 09:14:11 2011 -0700
+++ b/scripts/optimization/fsolve.m	Mon Aug 29 13:07:22 2011 -0400
@@ -127,7 +127,8 @@
 ## @end example
 ## @end deftypefn
 
-## PKG_ADD: __all_opts__ ("fsolve");
+## PKG_ADD: ## Discard result to avoid polluting workspace with ans at startup.
+## PKG_ADD: [~] = __all_opts__ ("fsolve");
 
 function [x, fvec, info, output, fjac] = fsolve (fcn, x0, options = struct ())