chern.lib
LIB "chern.lib"; ring h=0, (r, ch(1..5), t), ds; list l=ch(1..5); // get the polynomial r + ch(1)*t + ch(2)*t^2 + ... + ch(5)*t^5 print( chernCharPoly(r, l, t) ); ==> r+ch(1)*t+ch(2)*t^2+ch(3)*t^3+ch(4)*t^4+ch(5)*t^5