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。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。