quo, rem, quorem -> poly divide
03-22-2018, 09:24 PM (This post was last modified: 03-22-2018 09:27 PM by Han.)
Post: #8
 Han Senior Member Posts: 1,882 Joined: Dec 2013
RE: quo, rem, quorem -> poly divide
First: Perhaps the partfrac() command may be helpful in what you are trying to achieve.

Quote:1. The division operator, with poly's as arguments, would, itself, need to be smart enough to know that since you are asking for a [quotient, remainder], the result would not be just any old "vector or list." Context sensitivity.

2. Your divisor 2*x should also be parenthesized: ( (x^2+1) / (x) ) / (2*x);

IF it worked that way, the divide technology would be transparent to the student, at the command line. P/Q => [quotient, remainder] in some form. It doesn't, and neither did the other products I tried. Maybe this can't be done, I really don't know.

Let's just say -- for the sake of academic discussion -- that the division operator could in fact discern through parsing parentheses that the numerator should return a [quotient, remainder] pair and not be treated as a vector or list. I.e. it behaves just how you imagined it should. How, then, would one quickly take this [quotient, remainder] pair and divide both components by a single polynomial (or ratio of polynomials) if one desired the output [quotient/(2x), remainder/(2x)] as a list/vector? Would we then have to apply some sort of quorem2list() command first? (If so, we're pretty much back to square one for a different set of users).

My hunch is that / behaves the way it does for ratios of polynomials for the same reason that 13/7 stays exactly as 13/7.

Graph 3D | QPI | SolveSys
 « Next Oldest | Next Newest »

 Messages In This Thread quo, rem, quorem -> poly divide - DrD - 03-22-2018, 02:38 PM RE: quo, rem, quorem -> poly divide - Han - 03-22-2018, 02:47 PM RE: quo, rem, quorem -> poly divide - DrD - 03-22-2018, 04:31 PM RE: quo, rem, quorem -> poly divide - Han - 03-22-2018, 06:00 PM RE: quo, rem, quorem -> poly divide - Tim Wessman - 03-22-2018, 04:43 PM RE: quo, rem, quorem -> poly divide - DrD - 03-22-2018, 04:57 PM RE: quo, rem, quorem -> poly divide - DrD - 03-22-2018, 08:23 PM RE: quo, rem, quorem -> poly divide - Han - 03-22-2018 09:24 PM RE: quo, rem, quorem -> poly divide - DrD - 03-23-2018, 11:55 AM RE: quo, rem, quorem -> poly divide - Han - 03-23-2018, 12:51 PM RE: quo, rem, quorem -> poly divide - DrD - 03-23-2018, 01:21 PM

User(s) browsing this thread: 1 Guest(s)