Results 1 to 5 of 5

Math Help - long division

  1. #1
    No one in Particular VonNemo19's Avatar
    Joined
    Apr 2009
    From
    Detroit, MI
    Posts
    1,823

    long division

    Can long division be done with latex?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    3
    Quote Originally Posted by VonNemo19 View Post
    Can long division be done with latex?
    It would be terribly messy trying to do it in the forums...the TeX code would be a bit long... xD

    However, if you have \text{\LaTeX} installed on your computer, you can download the \texttt{polynom} package. You can find documentation and the package download for that here.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Super Member

    Joined
    May 2006
    From
    Lexington, MA (USA)
    Posts
    11,689
    Thanks
    617
    Hello, VonNemo19!

    Can long division be done with LaTexX?
    I devised a method, but I don't recommend it.

    As Chris pointed out, it's messy and takes a bit of planning.



    Example: . (x^3 - 5x^2 + 10x - 8) \div (x - 2) \;=\;x^2-3x + 4


    . . \begin{array}{ccccccccc}<br />
& & & & x^2 & - & 3x & + & 4 \\<br />
& & -- & -- & -- & -- & -- & -- & -- \\<br />
x-2 & ) & x^3 & - & 5x^2 & + & 10x & - & 8 \\<br />
& & x^3 & - & 2x^2 \\<br />
& & -- & -- & -- \\<br />
& & & & 3x^2 & + & 10x \\<br />
& & & & 3x^2 & + & 6x \\<br />
& & & & -- & -- & -- \\<br />
& & & & & & 4x & - & 8 \\<br />
& & & & & & 4x & - & 8 \\<br />
& & & & & & -- & -- & --<br />
\end{array}




    [tex]\begin{array}{ccccccccc}

    & & & & x^2 & - & 3x & + & 4 \\
    & & -- & -- & -- & -- & -- & -- & -- \\

    x-2 & ) & x^3 & - & 5x^2 & + & 10x & - & 8 \\
    & & x^3 & - & 2x^2 \\
    & & -- & -- & -- \\

    & & & & 3x^2 & + & 10x \\
    & & & & 3x^2 & + & 6x \\
    & & & & -- & -- & -- \\

    & & & & & & 4x & - & 8 \\
    & & & & & & 4x & - & 8 \\
    & & & & & & -- & -- & --

    \end{array}[/tex]

    Follow Math Help Forum on Facebook and Google+

  4. #4
    Super Member
    Joined
    Aug 2008
    Posts
    903
    Quote Originally Posted by VonNemo19 View Post
    Can long division be done with latex?
    <br />
\begin{array}{rc@{}c}<br />
& \multicolumn{2}{l}{\, \, \, \frac{1}{z}+\frac{z}{3}+\frac{z^3}{15}-\dotsb} \vspace*{0.12cm} \\<br />
\cline{2-3}<br />
\multicolumn{1}{r}{z^2-\frac{z^4}{3}+\frac{2z^6}{45}-\dotsb \hspace*{-4.8pt}} & \multicolumn{1}{l}{ \hspace*{-5.6pt} \Big) \hspace*{4.6pt} z} \\<br />
& \multicolumn{2}{l}{\, \, \, z-\frac{z^3}{3}+\frac{2z^5}{45}-\dotsb}<br />
\end{array}<br />

    here's some more of it that didn't fit with the 450 char limit (seek the aesthetics, much will be found )

    $$
    \begin{array}{rc@{}c}
    & \multicolumn{2}{l}{\, \, \, \frac{1}{z}+\frac{z}{3}+\frac{z^3}{15}-\dotsb} \vspace*{0.12cm} \\
    \cline{2-3}
    \multicolumn{1}{r}{z^2-\frac{z^4}{3}+\frac{2z^6}{45}-\dotsb \hspace*{-4.8pt}} & \multicolumn{1}{l}{ \hspace*{-5.6pt} \Big) \hspace*{4.6pt} z} \\
    & \multicolumn{2}{l}{\, \, \, z-\frac{z^3}{3}+\frac{2z^5}{45}-\dotsb}
    \\
    \vspace{1mm}
    \cline{2-3}
    \vspace{1mm}
    & \multicolumn{2}{l}{\, \, \, \phantom{1{}-{}}
    \frac{z^3}{3}-\frac{2z^5}{45}+\dotsb} \\
    & \multicolumn{2}{l}{\, \, \, \phantom{1{}-{}} \frac{z^3}{3}-\frac{z^5}{9}+\frac{2z^7}{135}+\dotsb} \vspace*{0.12cm}
    \\
    \vspace{1mm}
    \cline{2-3}
    \vspace{1mm}
    & \multicolumn{2}{l}{\, \, \, \phantom{z{}-{}\frac{z^3}{3}{}-{}} \frac{z^5}{15}-\dotsb}
    \end{array}
    $$
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    3
    Quote Originally Posted by shawsend View Post
    <br />
\begin{array}{rc@{}c}<br />
& \multicolumn{2}{l}{\, \, \, \frac{1}{z}+\frac{z}{3}+\frac{z^3}{15}-\dotsb} \vspace*{0.12cm} \\<br />
\cline{2-3}<br />
\multicolumn{1}{r}{z^2-\frac{z^4}{3}+\frac{2z^6}{45}-\dotsb \hspace*{-4.8pt}} & \multicolumn{1}{l}{ \hspace*{-5.6pt} \Big) \hspace*{4.6pt} z} \\<br />
& \multicolumn{2}{l}{\, \, \, z-\frac{z^3}{3}+\frac{2z^5}{45}-\dotsb}<br />
\end{array}<br />

    here's some more of it that didn't fit with the 450 char limit (seek the aesthetics, much will be found )

    $$
    \begin{array}{rc@{}c}
    & \multicolumn{2}{l}{\, \, \, \frac{1}{z}+\frac{z}{3}+\frac{z^3}{15}-\dotsb} \vspace*{0.12cm} \\
    \cline{2-3}
    \multicolumn{1}{r}{z^2-\frac{z^4}{3}+\frac{2z^6}{45}-\dotsb \hspace*{-4.8pt}} & \multicolumn{1}{l}{ \hspace*{-5.6pt} \Big) \hspace*{4.6pt} z} \\
    & \multicolumn{2}{l}{\, \, \, z-\frac{z^3}{3}+\frac{2z^5}{45}-\dotsb}
    \\
    \vspace{1mm}
    \cline{2-3}
    \vspace{1mm}
    & \multicolumn{2}{l}{\, \, \, \phantom{1{}-{}}
    \frac{z^3}{3}-\frac{2z^5}{45}+\dotsb} \\
    & \multicolumn{2}{l}{\, \, \, \phantom{1{}-{}} \frac{z^3}{3}-\frac{z^5}{9}+\frac{2z^7}{135}+\dotsb} \vspace*{0.12cm}
    \\
    \vspace{1mm}
    \cline{2-3}
    \vspace{1mm}
    & \multicolumn{2}{l}{\, \, \, \phantom{z{}-{}\frac{z^3}{3}{}-{}} \frac{z^5}{15}-\dotsb}
    \end{array}
    $$
    As I said, it would be messy...but hey, at least it works!!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. long division
    Posted in the Algebra Forum
    Replies: 4
    Last Post: March 27th 2011, 12:31 PM
  2. Long division
    Posted in the LaTeX Help Forum
    Replies: 4
    Last Post: June 27th 2010, 08:55 PM
  3. long division
    Posted in the Pre-Calculus Forum
    Replies: 8
    Last Post: May 19th 2009, 06:52 AM
  4. Long Division
    Posted in the Algebra Forum
    Replies: 1
    Last Post: January 31st 2008, 01:56 PM
  5. Long Division
    Posted in the Algebra Forum
    Replies: 3
    Last Post: January 20th 2007, 05:39 AM

Search Tags


/mathhelpforum @mathhelpforum