我怎么能够自动地仅显示任务和多项式长除法的结果,例如
(没有‘间隙’,上面看到得太晚了)
我知道,有可能把它们集中在一起(参见 MWE),但余项存在一个问题:
也许,存在一种巧妙的方法来取余数及其符号(“+”或“-”)或者必须将其过滤掉,polynom.sty
或者存在一种我不知道的可能性。
所以我的问题是:我怎样才能仅显示
梅威瑟:
\documentclass[margin=5mm, varwidth]{standalone}
\usepackage{polynom, xcolor}
\begin{document}
% Save some polynoms
\polyadd{\NumeratorI}{3x^4 - 22x^3 + 39x^2 - \frac{41}{2}x + \frac{11}{2}}{0}%
\polyadd{\NumeratorII}{x^2-10x+25}{0}%
\polyadd{\Denominator}{x-5}{0}%
\textbf{Target:} This without showing the calculation \\
\polylongdiv[style=C]\NumeratorI\Denominator \\
\polylongdiv[style=B]\NumeratorI\Denominator \\
\textbf{Actual:} Do it by your own \\
\polydiv\QuotientWithoutRemainderI\NumeratorI\Denominator
$\displaystyle
\left( \polyprint\NumeratorI \right) : \left( \polyprint\Denominator \right)
=
\polyprint\QuotientWithoutRemainderI+\frac{\polyprint{\polyremainder}}{\polyprint\Denominator}$ \\
{\color{red} Problem:} \\
\polydiv\QuotientWithoutRemainderII\NumeratorII\Denominator
$\displaystyle
\left( \polyprint\NumeratorII \right) : \left( \polyprint\Denominator \right)
=
\polyprint\QuotientWithoutRemainderI+\color{red}\frac{\polyprint{\polyremainder}}{\polyprint\Denominator}$ \\
\end{document}