np.lagline()
方法用於查找圖形為直線的Laguerre級數。
用法:np.lagline(off, scl)
參數:
off, scl :[scalar] The specified line is given by off + scl*x.
返回:[ndarray]結果行的Laguerre級數係數數組。
代碼1:
# Python program explaining
# numpy.lagline() method
# importing numpy as np
# and numpy.polynomial.laguerre module as geek
import numpy as np
import numpy.polynomial.laguerre as geek
# using np.lagline() method
res = geek.lagline(2, 3)
# Resulting Laguerre series
print (res)
輸出:
[ 5 -3]
代碼2:
# Python program explaining
# numpy.lagline() method
# importing numpy as np
# and numpy.polynomial.laguerre module as geek
import numpy as np
import numpy.polynomial.laguerre as geek
# using np.lagline() method
res = geek.lagline(1, 4)
# Resulting laguerre series
print (res)
輸出:
[ 5 -4]
相關用法
- Python Numpy polynomial legline()用法及代碼示例
- 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 lagline() method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。