I have a question that seems pretty basic. If I wanted to divide the following expression, is there a way that I can show each step easily.
1852/2. I want to show each step (Long division) I know there is a package for polynomial long division.
can anybody help?
Nick
General ⇒ Division and Latex
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Division and Latex
There is also a package called longdiv for integer long division:
http://tug.ctan.org/tex-archive/help/Catalogue/entries/longdiv.html
http://tug.ctan.org/tex-archive/help/Catalogue/entries/longdiv.html
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Re: Division and Latex
How do you load the tex package so that I can run long div problems? I am not sure how to do that.
Nick
Nick
Division and Latex
Hi Nick,
you have, at least, two options:
1) Save the file longdiv.tex in the same directory that contains your .tex file and then include longdiv.tex by using
2) Copy-paste the code from longdiv.tex directly to the preamble of your .tex document.
you have, at least, two options:
1) Save the file longdiv.tex in the same directory that contains your .tex file and then include longdiv.tex by using
Code: Select all
\input{longdiv}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 1
- Joined: Sat May 12, 2012 11:34 pm
Division and Latex
Hello, I'm new user of Latex and had the same questions about how to represent the division of "long division", but this was very helpful post. However, I am Brazilian and here so long to represent the division is somewhat different, see Wikipedia:
So I wonder if you can do this way too. Thank you.In Brazil, Venezuela and Colombia, the European notation (see below) is used, except that the quotient is not separated by a vertical line, as shown below:Code: Select all
127|4 -12 31,75 07 - 4 30 -28 20 -20 0