First, 'zeroOf' should be used only when we know that polynomial
is irreducible. Unfortunatly, current "lg2func" has too little
information to do this correctly. AFIACS instead of current
"lg2func" and friends we should use a variant of 'normalize'.
And we need to extend 'normalize' so that it looks at algebraic
dependencies. Anything less is just a temporary stopgap.
Real bug above is that we can not expand terms separately.
Concerning "pairsum": it should go away. I with attached
patch I get:
(1) -> integrate(a^(1/4)/(x^8-1),x)
(1)
4+-+
--+ x\|a - 8 %E
> %E log(------------)
--+ 4+-+
4 \|a
4096 %E - a = 0
+
4+-+
--+ x\|a - 8 %F
> %F log(------------)
--+ 4+-+
4 \|a
4096 %F + a = 0
Type: Union(Expression(Integer),...)
Unfortunatly, this causes troubles for definite integrator.
Basically, we need to teach 'limit' how to handle 'rootSum'.
--
Waldek Hebisch