| LIB "goettsche.lib";
ring r=0, (t, z), ls;
// consider the projective plane with Betti numbers 1,0,1,0,1
list b=1,0,1,0,1;
// get the Macdonald's formula up to degree 3
print( MacdonaldF(z, t, 3, b) );
==> 1+t+tz2+tz4+t2+t2z2+2t2z4+t2z6+t2z8+t3+t3z2+2t3z4+2t3z6+2t3z8+t3z10+t3z12
|