[solved] COLLECT bug? (10637)
|
11-20-2016, 06:45 PM
Post: #5
|
|||
|
|||
RE: COLLECT bug? (10637)
Thanks everyone, I'm impressed with how active this community is!
(11-20-2016 11:21 AM)DrD Wrote: To avoid any possible conflict with the variable e, (epsilon or ln) if you change variable e to f, instead, the last optional form (from the collect() help doc's, for a list of expressions, with respect to a variable), doesn't work, either:Agreed, that is curious. It appears that collect()'s issues stem from passing both a list of of polys as well as a Var to collect with respect to, which I'll admit isn't a usage explicitly shown in Help. As you probably saw, collect({a*b+a*c,a*d+a*f+d*f}) does produce algebraically equivalent results, even if not fully collected. JMB pointed out the subtlety that collect() is expecting a pure polynominal rather than a rational relation of two polys which I'm passing here. Since collect() does appear to be working correctly for collecting with respect to a single variable when rational relations aren't part of its parameters, I've thrown together a quick program which captures the essence of JMB's recommendation to work around collect()'s defficiency in an automated way. Code: #cas I'll need to do some more stress testing to blindly trust COLLECTR()'s results, but for the example I provided above it does appear to produce algebraically correct results in the form I was hoping for. Code: r:=(a*b+a*c)/(a*d+a*f+d*f) -Andy |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
[solved] COLLECT bug? (10637) - tastyelectron - 11-20-2016, 07:26 AM
RE: COLLECT bug? (10637) - DrD - 11-20-2016, 11:21 AM
RE: COLLECT bug? (10637) - tastyelectron - 11-20-2016 06:45 PM
RE: COLLECT bug? (10637) - JMB - 11-20-2016, 11:23 AM
RE: COLLECT bug? (10637) - DrD - 11-20-2016, 11:49 AM
RE: COLLECT bug? (10637) - parisse - 11-21-2016, 07:29 PM
RE: COLLECT bug? (10637) - John P - 11-21-2016, 07:40 PM
RE: COLLECT bug? (10637) - tastyelectron - 11-23-2016, 02:13 AM
|
User(s) browsing this thread: 1 Guest(s)