There is a bug in allvalues in Release 3, patchlevel 3. Everything works well on polynomials that have at least two diļ¬erent roots:
allvalues(RootOf(x^5*(x-2))) ==> 0,0,0,0,0,2 allvalues(RootOf((x-7)^4*(x-3))) ==> 3,7,7,7,7 allvalues(RootOf((x-1)*(x-2)*(x-3))) ==> 1,2,3
But on polynomials \((x-k)^n\) which are not expanded and on \(x^n\), Maple fails and only returns the root one time instead of n times:
allvalues(RootOf(x^2)) ==> 0 allvalues(RootOf(x^3)) ==> 0 allvalues(RootOf(x^4)) ==> 0 allvalues(RootOf((x-7)^4)) ==> 7 allvalues(RootOf(expand((x-7)^4))) ==> 7,7,7,7
So you can work around the bug by simply expanding the polynomial. But there still remains the faulty case \(x^n\).
Is this bug corrected in Release 4 or Release 5?
The same behaviour up to Maple 8 (U. Klein)