GeneralLong Divsion

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Mikerada6
Posts: 42
Joined: Fri Oct 17, 2008 5:55 pm

Long Divsion

Post by Mikerada6 »

What would be the best way to write the long division of two polynomials and show all the steps? An example of the long division i want to do is below:

Code: Select all

$\frac{x-4}{5x^2-17x-12}$

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Long Divsion

Post by Stefan Kottwitz »

Hi,

have a look at the polynom package, it provides commands to typeset long polynomial divisions, see its documentation and examples.

Stefan
LaTeX.org admin
Mikerada6
Posts: 42
Joined: Fri Oct 17, 2008 5:55 pm

Re: Long Divsion

Post by Mikerada6 »

this looks like what i want, but i am very confused as to how to use it.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Long Divsion

Post by Stefan Kottwitz »

The documentation explains how to use it. If you have specific questions, especially if the documentation is not clear enough at some point, feel free to ask here.

Stefan
LaTeX.org admin
Mikerada6
Posts: 42
Joined: Fri Oct 17, 2008 5:55 pm

Re: Long Divsion

Post by Mikerada6 »

I did not realize that this package was actually doing the long division for you i thought it simply formatted for you to do so. Thank you very much i love Latex, and the Latex Community. Thank you again
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Re: Long Divsion

Post by fractal.generator »

Let's consider the example document (from the link given by Mr. Stefan), the first form looks like the following,

__________
) ............


The division sign above has a gap between the closing brace and the underscore strings.

Is there a way to make it more beautiful without gap? ;)


Thanks in advance.


regards,

Hayashi
NathanCPFCD
Posts: 1
Joined: Sat Apr 11, 2015 2:08 pm

Re: Long Divsion

Post by NathanCPFCD »

I'm looking to use the \polylongdiv function in Latex but for an infinite series - is there any way to do this at all?

Basically I'm looking at Power series and want to show the long divison of 1/(1+x) showing up to the point where I have the answer 1-x+x^2-x^3+...

Is this at all possible through the polynom package or is there another better way of showing it?

Thanks!
Post Reply