多项式包乘法

多项式包乘法

polynom好的!所以……当我发现它对我来说只需要做多项式长除法,就好像这没什么大不了的时候,我真的很高兴。但是……有没有一个函数可以乘以多项式?我似乎找到了一个叫做\polymul在手册中找到了一些东西,但是...没有关于如何使用它的任何细节(而且我在尝试乘以简单多项式时不断出错):http://cs.brown.edu/about/system/managed/latex/doc/polynom.pdf

任何的意见都将会有帮助!

答案1

查看手册,你可以做这样的事情:

\documentclass{article}
\usepackage{polynom}
\begin{document}
% the next two lines are just to save the two polynoms we want to multiply to \PolynomA and \PolynomB
\polyadd\PolynomA{x-1}{0} % adding zero: trick mentioned in the manual
\polyadd\PolynomB{x^2+2}{0}%
% multiply A and B, save to \SomePolynom
\polymul\SomePolynom\PolynomA\PolynomB
\begin{equation}
(\polyprint\PolynomA)(\polyprint\PolynomB)=\polyprint\SomePolynom
\end{equation}    
\end{document}

在此处输入图片描述

一般来说,你需要\polymul\SomeMacronameYouDecideYourself{<first polynom>}{<second polynom>}。要获得有用的输出,你需要使用\polyprint\SomeMacronameYouDecideYourself

相关内容