numpy.
polyint
返回多项式的反导数(不定积分)。
注解
这是旧的多项式API的一部分。从版本1.4开始,新的多项式API在 numpy.polynomial 首选。差异可以在摘要中找到 transition guide .
numpy.polynomial
退回的订单 m 反导数 P 多项式的 p 满足 定义为 m - 1 积分常数 k . 常数决定了低阶多项式部分
System Message: WARNING/2 (\压裂K M-1 0!}x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1 })
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) ! Argument of \split has an extra }. <inserted text> \par l.14 \begin{split}\压裂K M-1 0!} x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1... Runaway argument? \压裂K M-1 0! ! Paragraph ended before \split was complete. <to be read again> \par l.14 \begin{split}\压裂K M-1 0!} x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1... ! Missing $ inserted. <inserted text> $ l.14 \begin{split}\压裂K M-1 0!} x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1... ! Missing \endgroup inserted. <inserted text> \endgroup l.14 \begin{split}\压裂K M-1 0!} x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1... ! Missing \endgroup inserted. <inserted text> \endgroup l.14 \begin{split}\压裂K M-1 0!} x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1... ! Display math should end with $$. <to be read again> \par l.14 \begin{split}\压裂K M-1 0!} x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1... ! Extra }, or forgotten \endgroup. <recently read> } l.14 \begin{split}\压裂K M-1 0!} x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1... ! Missing $ inserted. <inserted text> $ l.14 \begin{split}\压裂K M-1 0!}x^ 0+\ldots+\frac k(m-1)!} ^ ^ {M-1... ! Argument of \UTFviii@three@octets has an extra }. <inserted text> \par l.14 ...plit}\压裂K M-1 0!}x^0+\ldots+\frac k� ��m-1)!} ^ ^ {M-1 }\en... Runaway argument? ! Paragraph ended before \UTFviii@three@octets was complete. <to be read again> \par l.14 ...plit}\压裂K M-1 0!}x^0+\ldots+\frac k� ��m-1)!} ^ ^ {M-1 }\en... ! Missing $ inserted. <inserted text> $ l.14 ...plit}\压裂K M-1 0!}x^0+\ldots+\frac k� ��m-1)!} ^ ^ {M-1 }\en... ! Missing } inserted. <inserted text> } l.14 ...plit}\压裂K M-1 0!}x^0+\ldots+\frac k� ��m-1)!} ^ ^ {M-1 }\en... ! Extra }, or forgotten \endgroup. <recently read> } l.14 ...plit}\压裂K M-1 0!}x^0+\ldots+\frac k� ��m-1)!} ^ ^ {M-1 }\en... ! Package inputenc Error: Invalid UTF-8 byte "BC. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...lit}\压裂K M-1 0!}x^0+\ldots+\frac k� �m-1)!} ^ ^ {M-1 }\end... ! Package inputenc Error: Invalid UTF-8 byte "88. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...it}\压裂K M-1 0!}x^0+\ldots+\frac k( m-1)!} ^ ^ {M-1 }\end{... ! 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 ...�裂K M-1 0!}x^0+\ldots+\frac k(m-1) !} ^ ^ {M-1 }\end{split} ! Package inputenc Error: Unicode character ! (U+FF01) (inputenc) not set up for use with LaTeX. See the inputenc package documentation for explanation. Type H <return> for immediate help. ... l.14 ...�K M-1 0!}x^0+\ldots+\frac k(m-1)! } ^ ^ {M-1 }\end{split} ! Extra }, or forgotten \endgroup. l.14 ...K M-1 0!}x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! Missing $ inserted. <inserted text> $ l.14 ...M-1 0!}x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! Missing { inserted. <to be read again> ^ l.14 ...1 0!}x^0+\ldots+\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! Misplaced \crcr. \endsplit ->\crcr \egroup \egroup \iftagsleft@ \@xp \lendsplit@ \else \@xp \... l.14 ...\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! Extra }, or forgotten $. \endsplit ->\crcr \egroup \egroup \iftagsleft@ \@xp \lendsplit@ \else \@xp \... l.14 ...\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! LaTeX Error: \begin{equation*} on input line 13 ended by \end{split}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.14 ...\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! Missing $ inserted. <inserted text> $ l.14 ...\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! Missing $ inserted. <inserted text> $ l.14 ...\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! Missing $ inserted. <inserted text> $ l.14 ...\frac k(m-1)!} ^ ^ {M-1 }\end{split} ! LaTeX Error: Bad math environment delimiter. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.15 \end{equation*} ! LaTeX Error: \begin{document} ended by \end{equation*}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.15 \end{equation*} ! Missing $ inserted. <inserted text> $ l.15 \end{equation*} ! Display math should end with $$. <to be read again> \endgroup l.15 \end{equation*} ! Extra \endgroup. <recently read> \endgroup l.15 \end{equation*} [1] (./math.aux) ) (see the transcript file for additional information) Output written on math.dvi (1 page, 564 bytes). Transcript written on math.log.
属于 P 以便 .
要积分的多项式。序列被解释为多项式系数,请参见 poly1d .
poly1d
解毒剂的顺序。(默认值:1)
积分常数。它们是按照集成的顺序给出的:与最高阶项相对应的项首先出现。
如果 None (默认),所有常量都假定为零。如果 m = 1 可以给出单个标量而不是列表。
None
参见
polyder
多项式的导数
poly1d.integ
等效法
实例
解毒剂的定义性质:
>>> p = np.poly1d([1,1,1]) >>> P = np.polyint(p) >>> P poly1d([ 0.33333333, 0.5 , 1. , 0. ]) # may vary >>> np.polyder(P) == p True
积分常数默认为零,但可以指定:
>>> P = np.polyint(p, 3) >>> P(0) 0.0 >>> np.polyder(P)(0) 0.0 >>> np.polyder(P, 2)(0) 0.0 >>> P = np.polyint(p, 3, k=[6,5,3]) >>> P poly1d([ 0.01666667, 0.04166667, 0.16666667, 3. , 5. , 3. ]) # may vary
注意3=6/2!,常数按积分顺序给出。最高阶多项式项的常数首先出现:
>>> np.polyder(P, 2)(0) 6.0 >>> np.polyder(P, 1)(0) 5.0 >>> P(0) 3.0