GeneralDivision and Latex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Division and Latex

Post by coachbennett1981 »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Division and Latex

Post by torbjorn t. »

There is also a package called longdiv for integer long division:
http://tug.ctan.org/tex-archive/help/Catalogue/entries/longdiv.html
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Division and Latex

Post by coachbennett1981 »

How do you load the tex package so that I can run long div problems? I am not sure how to do that.

Nick
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Division and Latex

Post by gmedina »

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

Code: Select all

\input{longdiv}
2) Copy-paste the code from longdiv.tex directly to the preamble of your .tex document.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
alexsanderam
Posts: 1
Joined: Sat May 12, 2012 11:34 pm

Division and Latex

Post by alexsanderam »

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:
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
So I wonder if you can do this way too. Thank you.
Post Reply