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