Math & Science ⇒ Polynom package and change of variable
Polynom package and change of variable
I am having major problems with the polynom package. I am trying to perform polynomial long division on the expression n^3-1. I used the following code
\polyset{vars=n}
\polylongdiv{x^3-1}{x-1}
and the result is in the attachment. The expression goes all weird when I try to change the variable, because I desperately need it to be n instead of x. Why won't the package accept n as a variable?
Could someone please help me?
Thank you!
- Attachments
-
- polynomial.jpg (7.86 KiB) Viewed 5433 times
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Polynom package and change of variable
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{polynom}
\parindent0em
\begin{document}
\polyset{vars=n}
\polylongdiv{n^3-1}{n-1}
\end{document}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Polynom package and change of variable
It works now.