//SINGULAR Example 2.1.24 ring A = 0,(x,y,z),dp; module N = [xy,0,yz],[0,xz,z2]; //submodule of A^3, N; //2 generators LIB "inout.lib"; //library for formatting output show(N); //shows the generators as vectors print(N); //the corresponding matrix show(N+x*N); module M = [xy,yz],[xz,z2]; //submodule of A^2 matrix MM = M; //automatic typ conversion MM; //same as matrix MM = matrix(M); module K=syz(M); //computes the kernel of M show(K);