借助np.hermline()
方法,我们可以获得由hermite系列指定的行np.hermline()
方法。
用法:np.hermline(off, scl)
返回:Return the hermite series for off + scl*x
范例1:
在这个例子中,我们可以通过使用np.hermline()
方法,我们可以使用此方法获得由hermite系列指定的行。
# import numpy and hermline
import numpy as np
from numpy.polynomial.hermite import hermline
# using np.hermline() method
gfg = hermline(3, 4) + [1, 2]
print(gfg)
输出:
[4. 4.]
范例2:
# import numpy and hermline
import numpy as np
from numpy.polynomial.hermite import hermline
# using np.hermline() method
gfg = hermline(13, 4) + [10, 20]
print(gfg)
输出:
[23. 22.]
相关用法
- Python Numpy np.fft()用法及代码示例
- Python numpy.ma.ids()用法及代码示例
- Python Numpy np.hermeroots()用法及代码示例
- Python Numpy np.lagvander()用法及代码示例
- Python Numpy np.lagadd()用法及代码示例
- Python Numpy np.lagdiv()用法及代码示例
- Python Numpy np.lagsub()用法及代码示例
- Python Numpy np.lagmul()用法及代码示例
- Python Numpy np.hermegrid2d()用法及代码示例
- Python Numpy np.lagone()用法及代码示例
- Python Numpy np.lagzero()用法及代码示例
- Python Numpy np.lagcompanion()用法及代码示例
- Python Numpy np.lag2poly()用法及代码示例
- Python Numpy np.hermegrid3d()用法及代码示例
- Python Numpy np.hermefromroots()用法及代码示例
注:本文由纯净天空筛选整理自Jitender_1998大神的英文原创作品 Python | Numpy np.hermline() method。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。