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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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