//SINGULAR Example7.6.3 proc isReg(ideal f, module N) { int n=nrows(N); int i; while(i