]> gitweb.michael.orlitzky.com - octave.git/blobdiff - fixed_point_method.m
Replace ##-style comments with %-style comments in all non-test code.
[octave.git] / fixed_point_method.m
index eb3b61c27729331e7b76828625f3874a8c44f04f..a70a1ac74db3c361b11c6d5e9bf3dea16af92dd4 100644 (file)
@@ -1,21 +1,21 @@
 function [fixed_point, iterations] = fixed_point_method(g, epsilon, x0)
-  ## Find a fixed_point of the function `g` with initial guess x0.
-  ##
-  ## INPUTS:
-  ##
-  ##   * ``g`` - The function to iterate.
-  ##
-  ##   * ``epsilon`` - We stop when two successive iterations are within
-  ##     epsilon of each other, taken under the infinity norm. halt the
-  ##     search and return the current approximation.
-  ##
-  ## OUTPUTS:
-  ##
-  ##   * ``fixed_point`` - The fixed point that we found.
-  ##
-  ##   * ``iterations`` - The number of iterations that we performed
-  ##     during the search.
-  ##
+  % Find a fixed_point of the function `g` with initial guess x0.
+  %
+  % INPUTS:
+  %
+  %   * ``g`` - The function to iterate.
+  %
+  %   * ``epsilon`` - We stop when two successive iterations are within
+  %     epsilon of each other, taken under the infinity norm. halt the
+  %     search and return the current approximation.
+  %
+  % OUTPUTS:
+  %
+  %   * ``fixed_point`` - The fixed point that we found.
+  %
+  %   * ``iterations`` - The number of iterations that we performed
+  %     during the search.
+  %
 
   iterations = 0;
   prev = x0;