X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Forthogonal_polynomials.py;h=7e094fc201076938120972f268b55fd628470a47;hb=2fa2a7a2f6a5d5f1628a4f5cf3301d5e7f670038;hp=e8e9210f46437755dc99333ce3159f9b7abd5a71;hpb=ff5b1d1514a419bbf8140658778d1e69e89b2664;p=sage.d.git 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]`::