How do you print Laguerre polynomials in python?
I'm looking for something like
Laguerre(n,x) which would give me the Laguerre polynomial L_n(x)
Using Numpy (Documentation):
import numpy as np
from numpy.polynomial import Laguerre
p = Laguerre([1, -2, 1])
x = np.arange(5)
p(x)
Using scipy (Documentation):
scipy.special.eval_genlaguerre(r_ord, phi_ord, float(x))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With