changeset 33332:af9c0617f9f9 bytecode-interpreter

maint: Merge default to bytecode-interpreter.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Thu, 04 Apr 2024 22:51:18 -0400
parents 3e2a4821f5f5 (current diff) d7f1aae5be0f (diff)
children e8854b8d2486
files
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/nonlin.txi	Thu Apr 04 18:44:23 2024 -0400
+++ b/doc/interpreter/nonlin.txi	Thu Apr 04 22:51:18 2024 -0400
@@ -197,32 +197,32 @@
 the function, @code{F}, being minimized. E.g., @w{@code{F = F(x, C)}}.
 Octave's minimizer functions are designed to only pass one optimization
 variable to @code{F}, but parameter passing can be accomplished by defining
-an @ref{Anonymous Function} that contains the necessargy parameter(s).  See
-the example below:
+an @ref{Anonymous Functions,,Anonymous Function} that contains the necessary
+parameter(s).  See the example below:
 
+@example
 @group
-@example
 A = 2; B = 3;
-f = @(x) sin (A*x + B);
+f = @@(x) sin (A*x + B);
 fminbnd (f, 0, 2)
-@result 0.8562
+   @result{}   0.8562
+@end group
 @end example
-@end group
 
 Note that anonymous functions retain the value of parameters at the time they
 are defined.  Changing a parameter value after function definition will not
 affect output of the function until it is redefined:
 
+@example
 @group
-@example
 B = 4;
 fminbnd (f, 0, 2)
-@result 0.8562
-f = @(x) sin (A*x + B);
+   @result{}   0.8562
+f = @@(x) sin (A*x + B);
 fminbnd (f, 0, 2)
-@result 0.3562
+   @result{}   0.3562
+@end group
 @end example
-@end group
 
 The function @code{humps} is a useful function for testing zero and
 extrema finding functions.