]> gitweb.michael.orlitzky.com - octave.git/blobdiff - divided_difference_coefficients.m
Add an octaverc which modifies the load path and improved MATLAB compatibility.
[octave.git] / divided_difference_coefficients.m
index 53d5799e922af57d70c74604cca5814d4d4b7b4d..a40f5597d6b47712ad7e0b397585d71641b80ec8 100644 (file)
@@ -8,16 +8,15 @@ function coefficients = divided_difference_coefficients(xs)
   ## OUTPUTS:
   ##
   ##   * ``coefficients`` - The vector of coefficients such that
-  ##   dot(coefficients, f(xs)) == dd. Used to solve linear systems.
+  ##     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