]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
mjo/orthogonal_polynomials.py: fix tests to work with PYTHONPATH="."
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 1 Nov 2018 19:25:31 +0000 (15:25 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 1 Nov 2018 19:25:31 +0000 (15:25 -0400)
mjo/orthogonal_polynomials.py

index e8e9210f46437755dc99333ce3159f9b7abd5a71..7e094fc201076938120972f268b55fd628470a47 100644 (file)
@@ -28,6 +28,10 @@ def legendre_p(n, x, a = -1, b = 1):
     returned. Otherwise, the value of the ``n``th polynomial at ``x``
     will be returned.
 
+    SETUP::
+
+        sage: from mjo.orthogonal_polynomials import legendre_p
+
     EXAMPLES:
 
     Create the standard Legendre polynomials in `x`::
@@ -60,7 +64,7 @@ def legendre_p(n, x, a = -1, b = 1):
 
     And finite field elements::
 
-        sage: legendre_P(3, GF(11)(5))
+        sage: legendre_p(3, GF(11)(5))
         8
 
     Solve a simple least squares problem over `[-\pi, \pi]`::