GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1\\ compute basis of maximal order 2b = nfbasis( f ); 3 4p2v(n,b)=vector(n,j,polcoeff(b,j-1)); 5 6\\ print result 7print("[ "); 8for(i=1,#b, print(p2v(#b,b[i]),",")); 9print("];"); 10 11 12