]> gitweb.michael.orlitzky.com - octave.git/blobdiff - optimization/test_functions/himmelblau_hessian.m
Replace ##-style comments with %-style comments in all non-test code.
[octave.git] / optimization / test_functions / himmelblau_hessian.m
index 5a8752fa93990305f5f6e2d57f20d392375b627e..b846a6ac17048323e4151df7115804960bef71af 100644 (file)
@@ -1,11 +1,11 @@
 function H = himmelblau_hessian(x1, x2)
-  ##
-  ## The Hessian of the Himmelblau function. See himmelblau.m for more
-  ## information.
-  ##
+  %
+  % The Hessian of the Himmelblau function. See himmelblau.m for more
+  % information.
+  %
   H = zeros(2,2);
   H(1,1) = 12*x1^2 + 4*x2 - 42;
   H(1,2) = 4*x1 + 4*x2;
-  H(2,1) = 4*x1 + 4*x2;
+  H(2,1) = H(1,2);
   H(2,2) = 12*x2^2 + 4*x1 - 26;
 end