comparison scripts/optimization/fsolve.m @ 9209:923c7cb7f13f

Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction. spellchecked all .txi and .texi files.
author Rik <rdrider0-list@yahoo.com>
date Sun, 17 May 2009 12:18:06 -0700
parents 25f50d2d76b3
children 6feb27c38da1
comparison
equal deleted inserted replaced
9208:cb163402bf79 9209:923c7cb7f13f
89 ## is requested or until outputfcn is called with a different vector, in which 89 ## is requested or until outputfcn is called with a different vector, in which
90 ## case they should be dropped in favor of this most recent vector. A short 90 ## case they should be dropped in favor of this most recent vector. A short
91 ## example how this can be achieved follows: 91 ## example how this can be achieved follows:
92 ## 92 ##
93 ## @example 93 ## @example
94 ## @group
95 ## function [fvec, fjac] = user_func (x, optimvalues, state) 94 ## function [fvec, fjac] = user_func (x, optimvalues, state)
96 ## persistent sav = [], sav0 = []; 95 ## persistent sav = [], sav0 = [];
97 ## if (nargin == 1) 96 ## if (nargin == 1)
98 ## ## evaluation call 97 ## ## evaluation call
99 ## if (nargout == 1) 98 ## if (nargout == 1)
105 ## else 104 ## else
106 ## ## outputfcn call. 105 ## ## outputfcn call.
107 ## if (all (x == sav0.x)) 106 ## if (all (x == sav0.x))
108 ## sav = sav0; 107 ## sav = sav0;
109 ## endif 108 ## endif
110 ## ## maybe output iteration status etc. 109 ## ## maybe output iteration status, etc.
111 ## endif 110 ## endif
112 ## endfunction 111 ## endfunction
113 ## 112 ##
114 ## ## @dots{}. 113 ## ## @dots{}.
115 ## 114 ##
116 ## fsolve (@@user_func, x0, optimset ("OutputFcn", @@user_func, @dots{})) 115 ## fsolve (@@user_func, x0, optimset ("OutputFcn", @@user_func, @dots{}))
117 ## @end group
118 ## @end example 116 ## @end example
119 ### 117 ###
120 ## @end deftypefn 118 ## @end deftypefn
121 119
122 ## PKG_ADD: __all_opts__ ("fsolve"); 120 ## PKG_ADD: __all_opts__ ("fsolve");