numpy.polynomial.chebyshev.chebval

polynomial.chebyshev.chebval(x, c, tensor=True)[源代码]

在点X处计算切比雪夫级数。

如果 c 长度 n + 1 ,此函数返回值:

System Message: WARNING/2 (P(x)=C00 * T_0(x) + c_1 * T1(x)+…+Cnn*Tyn(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+FF08) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(x)\end{split} ! Package inputenc Error: Unicode character = (U+FF1D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ... * T1(x)+…+Cnn*Tyn(x)\end{split} ! 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 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(x)\end{split} ! 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 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(x)\end{split} ! Package inputenc Error: Unicode character = (U+FF1D) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ... * T1(x)+…+Cnn*Tyn(x)\end{split} ! 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 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(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 ... * T1(x)+…+Cnn*Tyn(x)\end{split} [1] (./math.aux) ) (see the transcript file for additional information) Output written on math.dvi (1 page, 472 bytes). Transcript written on math.log.

参数 x 只有当数组是元组或列表时才转换为数组,否则将被视为标量。在任何一种情况下,要么 x 或者它的元素必须支持自身和元素的乘法和加法。 c .

如果 c 是一维数组,然后 p(x) 将具有与相同的形状 x . 如果 c 是多维的,则结果的形状取决于 tensor .如果 tensor 是真的,形状将是C形。 [1:] +X.形状。如果 tensor 如果为假,则形状将为C形。 [1:] . 请注意,标量具有形状(,)。

系数中的尾随零将用于评估,因此,如果考虑效率,应避免尾随零。

参数
x类似数组的兼容对象

如果 x 是一个列表或元组,它被转换为一个ndarray,否则它将保持不变并被视为一个标量。在任何一种情况下, x 或者其元素必须支持与自身和元素的加法和乘法 c .

carray_like

有序的系数数组,使n次项的系数包含在c中 [n] .如果 c 是多维的,其余的索引枚举多个多项式。在二维情况下,系数可以被认为是存储在 c .

tensor布尔值,可选

如果为真,则将系数数组的形状扩展为右侧的形状,每个尺寸的 x . 此操作的标量的维度为0。结果是每列系数 c 对的每个元素进行了评估 x . 如果是假的, x 是通过以下列广播的 c 用于评估。当 c 是多维的。默认值为true。

1.7.0 新版功能.

返回
valuesndarray,代数类

返回值的形状如上所述。

笔记

评估使用了克伦肖递归,也就是合成除法。