Python | Numpy polynomial legline() method
np.legline()
method is used to find a Legendre series whose graph is a straight line.
Syntax : np.legline(off, scl)
Parameters:
off, scl :[scalar] The specified line is given by off + scl*x.
Return : [ndarray] Legendre series coefficient array for the resulting line.
Code #1 :
import numpy as np
import numpy.polynomial.legendre as geek
res = geek.legline( 2 , 3 )
print (res)
|
Code #2 :
import numpy as np
import numpy.polynomial.legendre as geek
res = geek.legline( 1 , 4 )
print (res)
|
Last Updated :
30 Jan, 2020
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...