I'm having trouble with GAP - Groups, Algorithms, Programming.
I'm trying to use RadiRoot 2.7 to express the roots of a polynomial as matrices.
It works for quadratics, but fails for anything of higher degree - even the example in the manual!
I've got GAP 4.8.8, and am running it through a terminal window on Ubuntu 17.04
Here's an example of the program working for a quadratic:
gap> x := Indeterminate(Rationals,"x");;
gap> f := UnivariatePolynomial(Rationals,[1,0,1]);
x^2 + 1
gap> Display(RootsAsMatrices(f)[1]);
[[0,1],[-1,0]]
I can't seem to get it to work for anything of a higher degree, not even the example in the manual.
gap> x := Indeterminate(Rationals,"x");;
gap> f := UnivariatePolynomial(Rationals,[1,3,4,1]);
x^3+4*x^2+3*x+1
gap> Display(RootsAsMatrices(f)[1]);
Here I just get an error message saying that there are too many arguments:

The Nice people at GAP Support helped me fix the problem.
I needed to replace the file
gap4r8/pkg/Alnuth-3.0.0/gp/polyfactors.gpwithIt seems I was experiencing problems between PARI/GP and GAP.
However, as Dima's post points out: I did not run
LoadPackage("radiroot");inside GAP. It's too late for me to try this because I've over-written polyfactors.gp