]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/interpolation.py
Add a note about the nonstandard name "Motzkin decomposition."
[sage.d.git] / mjo / interpolation.py
index 5c8fa288de43c0ffa8b580cece5a0566945f88b9..4be95e2463b7d4b1592a5f4e6cf86ba54e36da7f 100644 (file)
@@ -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:
@@ -183,7 +183,7 @@ def divided_difference(xs, ys):
 
     We try something entirely symbolic::
 
-        sage: f = function('f'x)
+        sage: f = function('f')(x)
         sage: divided_difference([x], [f(x=x)])
         f(x)
         sage: x1,x2 = SR.var('x1,x2')