]> gitweb.michael.orlitzky.com - octave.git/blobdiff - divided_difference_coefficients.m
Don't take a redundant parameter in step_length_positive_definite().
[octave.git] / divided_difference_coefficients.m
index 53d5799e922af57d70c74604cca5814d4d4b7b4d..92e991575b54460cbf3475ebb92e68d7faa8253f 100644 (file)
@@ -1,23 +1,22 @@
 function coefficients = divided_difference_coefficients(xs)
-  ## Compute divided difference coefficients of `f` at points `xs`.
-  ##
-  ## INPUTS:
-  ##
-  ##   * ``xs`` - A vector containing x-coordinates.
-  ##
-  ## OUTPUTS:
-  ##
-  ##   * ``coefficients`` - The vector of coefficients such that
-  ##   dot(coefficients, f(xs)) == dd. Used to solve linear systems.
-  ##
+  % Compute divided difference coefficients of `f` at points `xs`.
+  %
+  % INPUTS:
+  %
+  %   * ``xs`` - A vector containing x-coordinates.
+  %
+  % OUTPUTS:
+  %
+  %   * ``coefficients`` - The vector of coefficients such that
+  %     dot(coefficients, f(xs)) == f[xs]. Used to solve linear systems.
+  %
 
   coefficients = [];
-    
+
   for xj = xs
     this_coeff = 1;
     for xi = xs
       if (xi != xj)
-       ## Append (xj - xi) to the vector of coefficients.
        this_coeff = this_coeff * (1 / (xj - xi));
       end
     end