From: Michael Orlitzky Date: Thu, 1 Nov 2018 19:25:31 +0000 (-0400) Subject: mjo/orthogonal_polynomials.py: fix tests to work with PYTHONPATH="." X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=930b77721b3dd6d00cc4f53f43c78cc6c16e2ed5;p=sage.d.git mjo/orthogonal_polynomials.py: fix tests to work with PYTHONPATH="." --- diff --git a/mjo/orthogonal_polynomials.py b/mjo/orthogonal_polynomials.py index e8e9210..7e094fc 100644 --- a/mjo/orthogonal_polynomials.py +++ b/mjo/orthogonal_polynomials.py @@ -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]`::