Here .../DEMOS/GMG-Mainz_DMV-99/Examples/normal.html you can find this code:
Code:
LIB "normal.lib";
ring r=0,(x,y,z),dp;
ideal i=y^2-x^2*z;
list NN=normal(i);
def N=NN[1];
setring N;
PP;
=> PP[1]=T(1)
=> PP[2]=T(1)*T(2)
=> PP[3]=T(2)^2
But it does not work any more when I write it in Singular. Maybe it was written in old version of Singular and does not work any more, but I can not figure out how to amend it to work with current version of Singular.
Another question is how I would use the same code inside Sage?