]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
Fix a (harmless) doctest failure in mjo.interpolation.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 24 Oct 2014 15:21:39 +0000 (11:21 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 24 Oct 2014 15:21:39 +0000 (11:21 -0400)
mjo/interpolation.py

index cbba68e03a4e2bd3ae5601ec51844aada3cf435d..5c8fa288de43c0ffa8b580cece5a0566945f88b9 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])