np.legline()
方法用於查找圖為直線的Legendre係列。
用法:np.legline(off, scl)
參數:
off, scl :[scalar] The specified line is given by off + scl*x.
返回:[ndarray]所得行的Legendre級數係數數組。
代碼1:
# Python program explaining
# numpy.legline() method
# importing numpy as np
# and numpy.polynomial.legendre module as geek
import numpy as np
import numpy.polynomial.legendre as geek
# using np.legline() method
res = geek.legline(2, 3)
# Resulting legendre series
print (res)
輸出:
[2 3]
代碼2:
# Python program explaining
# numpy.legline() method
# importing numpy as np
# and numpy.polynomial.legendre module as geek
import numpy as np
import numpy.polynomial.legendre as geek
# using np.legline() method
res = geek.legline(1, 4)
# Resulting legendre series
print (res)
輸出:
[1 4]
相關用法
- Python Numpy polynomial lagline()用法及代碼示例
- Python Numpy polynomial legint()用法及代碼示例
- Python Numpy np.fft()用法及代碼示例
- Python numpy.ma.ids()用法及代碼示例
- Python Numpy np.chebval3d()用法及代碼示例
- Python Numpy np.lagone()用法及代碼示例
- Python Numpy np.lagzero()用法及代碼示例
- Python Numpy np.chebfromroots()用法及代碼示例
- Python Numpy np.chebgrid2d()用法及代碼示例
- Python Numpy np.chebgrid3d()用法及代碼示例
- Python Numpy np.lag2poly()用法及代碼示例
- Python Numpy np.lagcompanion()用法及代碼示例
- Python Numpy np.kron()用法及代碼示例
注:本文由純淨天空篩選整理自jana_sayantan大神的英文原創作品 Python | Numpy polynomial legline() method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。