Welcome to the TeXnik website (under construction) Polynomial- and Binary-Division |
||||||||||||
|
with equnarray A polynomial division writing in mathmode is possible with \underline{}, \hspace{} and use of eqnarray. \begin{eqnarray*} (x^{5}+x^{2}):(x^{3}+x^{2}) & = & x^{2}-x+1\\ \underline{{-(x^{5}+x^{4})}}\hspace{11ex}\\ -x^{4}+x^{2}\hspace{7ex}\\ \underline{{-(-x^{4}-x^{3})}}\hspace{6ex}\\ x^{3}+x^{2}\hspace{2ex}\\ \underline{{-(x^{3}+x^{2})}\hspace{1ex}}\\ 0\hspace{5ex} \end{eqnarray*}
with package polynom this makes polynomial division very easy! For example \polyset{style=B}\polylongdiv{x^3+x^2+x+1}{x-1} For more information look at the doc, which comes with the package, which is available at CTAN or part of your local tex-installation! |