]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/interpolation.py
Update existing tests to use the codim() function.
[sage.d.git] / mjo / interpolation.py
index fa784dd8c86fc2ab9406592622599f0320ba8941..5c8fa288de43c0ffa8b580cece5a0566945f88b9 100644 (file)
@@ -1,5 +1,5 @@
 from sage.all import *
-from misc import product
+product = prod
 
 
 def lagrange_denominator(k, xs):
@@ -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])