From 930b77721b3dd6d00cc4f53f43c78cc6c16e2ed5 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 1 Nov 2018 15:25:31 -0400 Subject: [PATCH] mjo/orthogonal_polynomials.py: fix tests to work with PYTHONPATH="." --- mjo/orthogonal_polynomials.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]`:: -- 2.44.2