numpy.polynomial.hermite.hermvander

polynomial.hermite.hermvander(x, deg)[源代码]

给定度的伪范德蒙矩阵。

返回度的伪范德蒙矩阵 deg 和采样点 x . 伪范德蒙矩阵的定义如下:

System Message: WARNING/2 (V [我…] = Hayi(x),)

latex exited with error [stdout] This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./math.tex LaTeX2e <2018-12-01> (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo)) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/share/texlive/texmf-dist/tex/latex/amscls/amsthm.sty) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/share/texlive/texmf-dist/tex/latex/anyfontsize/anyfontsize.sty) (/usr/share/texlive/texmf-dist/tex/latex/tools/bm.sty) (./math.aux) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) ! Package inputenc Error: Unicode character 我 (U+6211) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} LaTeX Warning: Command \textellipsis invalid in math mode on input line 14. ! Package inputenc Error: Unicode character ( (U+FF08) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} ! Package inputenc Error: Unicode character ) (U+FF09) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} ! Package inputenc Error: Unicode character , (U+FF0C) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} ! Package inputenc Error: Unicode character 我 (U+6211) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} LaTeX Warning: Command \textellipsis invalid in math mode on input line 14. ! Package inputenc Error: Unicode character ( (U+FF08) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} ! Package inputenc Error: Unicode character ) (U+FF09) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} ! Package inputenc Error: Unicode character , (U+FF0C) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}V [我…] = Hayi(x),\end{split} [1] (./math.aux) ) (see the transcript file for additional information) Output written on math.dvi (1 page, 316 bytes). Transcript written on math.log.

在哪里? 0 <= i <= deg . 主要指标 V 索引的元素 x 最后一个指标是厄米特多项式的阶数。

如果 c 是长度系数的一维数组 n + 1V 是数组 V = hermvander(x, n) 然后 np.dot(V, c)hermval(x, c) 到环岛都是一样的。这种等效性对于最小二乘拟合以及对大量相同程度的厄米特级数和采样点的评估都是有用的。

参数
xarray_like

点数组。根据元素是否复杂,数据类型转换为float64或complex128。如果 x 是标量,它被转换为一维数组。

deg利息

结果矩阵的阶数。

返回
vander恩达雷

伪范德蒙矩阵。返回矩阵的形状为 x.shape + (deg + 1,) ,其中最后一个索引是对应的厄米特多项式的度数。数据类型将与转换后的类型相同 x .

实例

>>> from numpy.polynomial.hermite import hermvander
>>> x = np.array([-1, 0, 1])
>>> hermvander(x, 3)
array([[ 1., -2.,  2.,  4.],
       [ 1.,  0., -2., -0.],
       [ 1.,  2.,  2., -4.]])