Skip to main content
25-Diamond I
January 7, 2013
Question

Remainder of a polynomial division

  • January 7, 2013
  • 1 reply
  • 3981 views

I am just stuck at what looks like a simple basic problem, but have no idea how to do it with Mathcad.

How can I calculate the remainder of a polynomial division?

What I am looking for is something like

poldiv0.png

but I would also b ehappy with

poldiv.png

or with something like

poldiv2.png

I remember a library for polynomials from Tom Gutman back in the good old days. He was working numerically with the coeffs only, I think.

But shouldn't there be an easier way to achieve my goal?

1 reply

12-Amethyst
January 8, 2013

Can't see an easy way to split the remainder out just using mathcad symblics, but hope these help


regards

Andy

19-Tanzanite
January 8, 2013

Here's an alternative (but still cumbersome!) method.

Alan

Werner_E25-Diamond IAuthor
25-Diamond I
January 8, 2013

Andy and Alan, thank you for your quick response.

I was just about to quickly(?) check students answers but I realize now, that there is no quick an easy way out of the box. It's a pity that the symbolic evaluation in Mathcad does not offer more sophisticated ways to trim the outcome the way needed.

So it seems to be time to upgrade my Mathcad toolbox.

My first quick and dirty (and manual) approach was along the line of the first part of Andys file and I already was thinking about a general routine going along the line of separating dnom and nom and usin coeffs, like Andy did. Thanks for providung that routine, its sure helpful.

Alans approach is really interesting and I wouldn't have thought of that kind of solution. I think it should not be too hard to generalize it for arbitrary polynomials by generating the two necessary polynomials for r and f of the right degree by small programs.

Again thanks to both of you for your time and effort.

WE