好的!所以......當我發現它只會為我做多項式長除法時,我真的很高興,polynom
就像這沒什麼大不了的。但是......是否有多項式相乘的函數?我好像發現了一個叫做\polymul
手冊中調用的東西,但是......沒有任何關於如何使用它的細節(並且在嘗試乘以簡單多項式時我不斷收到錯誤):http://cs.brown.edu/about/system/management/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
.