genlaguerre poly1d-object doesn't respect 'monic' option at evaluation #7247
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
scipy.special
Milestone
Using Python 3.6 with Anaconda. Fresh install 2 weeks ago.
I'm using the funciton scipy.special.genlaguerre to generate the generalized laguerre polynomials. The function has the option 'monic' which scales the parameters, such that the leading parameter equals 1.
The returned poly1d-object print correctly scaled, but evaluating the function does not correspond to the printed object. The default function (non-scaled) is always returned.
MWE:
from scipy.special import genlaguerre
gl1 = genlaguerre(1,1,monic=False)
gl2 = genlaguerre(1,1,monic=True)
print(gl1)
print(gl2)
print(gl1(0))
print(gl2(0))
Output:
-1 x + 2
1 x - 2
2.0
2.0
The text was updated successfully, but these errors were encountered: