Python | Numpy polynomial legline() method
np.legline() method is used to find a Legendre series whose graph is a straight line.
off, scl :[scalar] The specified line is given by off + scl*x.
Return : [ndarray] Legendre series coefficient array for the resulting line.
Code #1 :
Code #2 :