]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/interpolation.py
Remove lyapunov_rank() for inclusion in Sage.
[sage.d.git] / mjo / interpolation.py
index cbba68e03a4e2bd3ae5601ec51844aada3cf435d..e32ed6d24712da31ff96bcfa6c3c53278abc112a 100644 (file)
@@ -48,7 +48,7 @@ def lagrange_coefficient(k, x, xs):
 
         sage: xs = [ -pi/2, -pi/6, 0, pi/6, pi/2 ]
         sage: lagrange_coefficient(0, x, xs)
-        1/8*(pi - 6*x)*(pi - 2*x)*(pi + 6*x)*x/pi^4
+        1/8*(pi + 6*x)*(pi - 2*x)*(pi - 6*x)*x/pi^4
 
     """
     numerator = lagrange_psi(x, xs)/(x - xs[k])
@@ -60,7 +60,7 @@ def lagrange_coefficient(k, x, xs):
 
 def lagrange_polynomial(x, xs, ys):
     """
-    Return the Lagrange form of the interpolation polynomial in `x` of
+    Return the Lagrange form of the interpolating polynomial in `x`
     at the points (xs[k], ys[k]).
 
     INPUT: