TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know of the polynom package for typesetting long divisions of polynoms. What I want to do is to typeset a long division of two polynoms that contain not numbers but equivalence classes based on the modulo. By that I mean that I use sets of numbers where the division with rest by a predefined number yields the same number (e.g. if this number is 3, both 4 and 7 will be in the same class [1]) instead of actual numbers.

Anyway, with a package where I enter the calculation manually what non-numbers I calculate on would not be relevant.

polynom can't calculate those.

Is there a package that does this, either manually or automatically like polynom?

share|improve this question
TeX is a typesetting system. Try sage together with the sagetex package for LaTeX. – yo' Dec 3 '12 at 17:29
You don't say? I did mention that I'm perfectly fine with manually entering the actual calculations. – Erik Dec 3 '12 at 17:36
Sorry if I sounded rude. I don't like the idea behind packages like polynom. I know you mentioned you're ok with manually entering, but I don't know any package to help you with that. On the other hand, I thought that mentioning sagetex at this place can be helpful. – yo' Dec 3 '12 at 17:38
Related: tex.stackexchange.com/q/84562/14100 – Scott H. Dec 3 '12 at 17:51
I don't understand the question. The nearest I can guess is that you want to present long divisions with results modulo some ideal. (This doesn't make sense to me.) Can you provide an example/be more precise? – Marc van Dongen Dec 3 '12 at 18:25
up vote 2 down vote accepted

No, there's no such package. Maybe a reworking of polynom might allow this, but it seems to be very extensive work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.