Math & Sciencepolynom variable

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

polynom variable

Post by Mini »

Hello,

When I'm using the polynom package, it seems to only like 'x' as a variable. If I choose another variable like 'u', it doesn't like it.

eg. \polylongdiv{X^3+X^2-1}{X-1} works well, but \polylongdiv{u^3+u^2-1}{u-1} does not work. Is there any work around to this?

Thanks

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

polynom variable

Post by frabjous »

Try using the \polyset command to define what the variables are:

Code: Select all

\documentclass{article}
\usepackage{polynom}
\begin{document}
\polyset{vars=u}
\polylongdiv{u^3+u^2-1}{u-1}
\end{document}
See the polynom documentation for more info.
Post Reply