TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Polynomial- and Binary-Division
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


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!

local time: Sat Aug 24 02:44:58 CEST 2019 ; file is: 56.4657523148148 days old
contact webmaster _at_ TeXnik.de