Math & Science ⇒ Long Division with Binary Numbers
Long Division with Binary Numbers
Could you tell me please, how to do in latex the following division --> http://postimg.org/image/c5cejszvf/
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 45
- Joined: Fri Mar 16, 2012 8:22 pm
Long Division with Binary Numbers
May not be the best solution, but using the
Have a nice day
\array
environment and removing the separation between column.Code: Select all
\documentclass{article}
\begin{document}
\[\setlength{\arraycolsep}{0pt}
\begin{array}[t]{*{16}{l}}
1&0&0&0&0&0&0&0&0&0&0&0&0&0&0&1\\
1&1&0&0&1&\\ \cline{1-5}
&1&0&0&1&0\\
&1&1&0&0&1&&&&&&&&&&\\\cline{2-6}
&&1&0&1&1&0&&&&&&&&&\\
&&1&1&0&0&1&&&&&&&&&\\\cline{3-7}
&&&1&1&1&1&0&&&&&&&&\\
&&&1&1&0&0&1&&&&&&&&\\\cline{4-8}
&&&&&1&1&1&0&0&&&&&&\\
&&&&&1&1&0&0&1&&&&&&\\\cline{6-10}
&&&&&&&1&0&1&0&0&&&&\\
&&&&&&&1&1&0&0&1&&&&\\\cline{8-12}
&&&&&&&&1&1&0&1&0&&&\\
&&&&&&&&1&1&0&0&1&&&\\\cline{9-13}
&&&&&&&&&&&1&1&0&0&1\\
&&&&&&&&&&&1&1&0&0&1\\\cline{12-16}
&&&&&&&&&&&&&&&0\\
\end{array}:11001=11110101001
\]
\end{document}