| LIB "normal.lib";
ring r=32003,(x,y,z),wp(2,1,2);
ideal i=z3-xy4;
list nor=normal(i);
→
→ // 'normal' created a list of 1 ring(s).
→ // nor[1+1] is the delta-invariant in case of choose=wd.
→ // To see the rings, type (if the name of your list is nor):
→ show( nor);
→ // To access the 1-st ring and map (similar for the others), type:
→ def R = nor[1]; setring R; norid; normap;
→ // R/norid is the 1-st ring of the normalization and
→ // normap the map from the original basering to R/norid
show(nor);
→ // list, 1 element(s):
→ [1]:
→ // ring: (32003),(T(1),T(2),T(3)),(a(2,1,1),dp(3),C);
→ // minpoly = 0
→ // objects belonging to this ring:
→ // normap [0] ideal, 3 generator(s)
→ // norid [0] ideal, 1 generator(s)
def r1=nor[1];
setring r1;
norid;
→ norid[1]=T(3)3-T(1)T(2)
normap;
→ normap[1]=T(1)
→ normap[2]=T(2)
→ normap[3]=T(2)T(3)
ring s=0,(x,y),dp;
ideal i=(x-y^2)^2 - y*x^3;
nor=normal(i,"wd");
→
→ // 'normal' created a list of 1 ring(s).
→ // nor[1+1] is the delta-invariant in case of choose=wd.
→ // To see the rings, type (if the name of your list is nor):
→ show( nor);
→ // To access the 1-st ring and map (similar for the others), type:
→ def R = nor[1]; setring R; norid; normap;
→ // R/norid is the 1-st ring of the normalization and
→ // normap the map from the original basering to R/norid
//the delta-invariant
nor[size(nor)];
→ 3
|