source: git/Tst/Manual/Basic_programming.tst @ c2f6bd

spielwiese
Last change on this file since c2f6bd was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 711 bytes
Line 
1LIB "tst.lib"; tst_init();
2ring R = 32003,(x,y,z),dp;
3R;
4x > y;
5y > z;
6int a,b,c,t = 1,2,-1,4;
7poly f = a*x3+b*xy3-c*xz3+t*xy2z2;
8f;
9ideal i = jacob(f);    // Jacobian Ideal of f
10ideal si = std(i);     // compute Groebner basis
11int dimi = dim(si);
12string s = "The dimension of V(i) is "+string(dimi)+".";
13s;
14LIB "primdec.lib";     // load library primdec.lib
15list L = primdecGTZ(i);
16size(L);               // number of prime components
17L[1][1];               // first primary component
18L[1][2];               // corresponding prime component
19ring Rloc = 32003,(x,y,z),ds;   // ds = local monomial ordering
20ideal i = imap(R,i);
21dim(std(i));
22map phi = R, x-2000, y-6961, z-7944;
23dim(std(phi(i)));
24tst_status(1);$
Note: See TracBrowser for help on using the repository browser.