Math & ScienceTypeset polynomial long Division

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
cbeberge
Posts: 10
Joined: Sat Mar 13, 2010 3:03 pm

Typeset polynomial long Division

Post by cbeberge »

Hi,

how can I typeset a polynom division like this?
Untitled 1.png
Untitled 1.png (4.31 KiB) Viewed 23704 times

Recommended reading 2024:

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

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

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Typeset polynomial long Division

Post by Frits »

Have a look at the polynom package. That will probably do the trick for you.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
cbeberge
Posts: 10
Joined: Sat Mar 13, 2010 3:03 pm

Re: Typeset polynomial long Division

Post by cbeberge »

Hi

Thanks. Sure there is no simpler way to do this ? Polynom package dosent make it the way on the image.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Typeset polynomial long Division

Post by localghost »

cbeberge wrote:[…] Sure there is no simpler way to do this ? Polynom package dosent make it the way on the image.
The package already offers the simplest (because automated) method. You just need to learn how to read manuals.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{polynom}

\polyset{%
  style=C,
  delims={\big(}{\big)},
  div=:
}

\begin{document}
  \[
    \polylongdiv{x^3-2x^2+4x+7}{x+1}
  \]
\end{document}
For details take a look at Sections 4.1 and 4.2 of the polynom manual.


Thorsten
Post Reply