Ticket #3148 (closed enhancement: fixed)
[with patch, positive review] improved orthogonal functions
|Reported by:||fwclarke||Owned by:||was|
|Component:||calculus||Keywords:||orthogonal polynomials Maxima|
The defects in the code for the hermite function in sage/functions/orthogonal_polys.py which were noted and corrected in #2336 apply equally to the other functions in that file.
The attached patch applies the same fix that worked for hermite to the following functions:
chebyshev_T, chebyshev_U, gen_laguerre, gen_legendre_P, gen_legendre_Q, jacobi_P, laguerre, legendre_P, legendre_Q, ultraspherical
This allows these polynomials to take much more general arguments; see the examples given for legendre_P.
gen_legendre_P, gen_legendre_Q, legendre_Q
no longer yield a string representing a Maxima expression when the argument is a variable.
For m > n the function gen_legendre_Q(n, m, x) has to be computed independently of Maxima. This part of the code may need improving.
The introductory documentation has not been changed.
- Summary changed from improved orthogonal functions to [with patch, needs review] improved orthogonal functions
- Summary changed from [with patch, needs review] improved orthogonal functions to [with patch, positive review] improved orthogonal functions