source: git/Tst/Short/graphics.tst @ d0162f6

spielwiese
Last change on this file since d0162f6 was ef52d6, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Update testsuite wrt current master (320c4f5e64cad778b4ada9556a9b0a6c71cab83a) NOTE: some wrong/bad tests were removed... TODO: add the reset of these updates after updating LIB/
  • Property mode set to 100644
File size: 1.1 KB
Line 
1LIB "tst.lib";
2LIB "graphics.lib";
3
4tst_init();
5 
6 // test staircase
7
8  ring r0 = 0,(x,y),ls;
9  ideal I = -1x2y6-1x4y2, 7x6y5+1/2x7y4+6x4y6;
10  staircase("",std(I));
11  ring r1 = 0,(x,y),dp;
12  ideal I = fetch(r0,I);
13  staircase("",std(I));
14  ring r2 = 0,(x,y),wp(2,3);
15  ideal I = fetch(r0,I);
16  staircase("",std(I));
17
18 // test math.init
19  mathinit();
20 
21 // test mplot
22   ring rr0 = 0,x1,dp;
23   ideal I = x1^3 + x1, x1^2;
24   ideal J = x1^2,-x1+x1^3; "";
25   mplot("",J);
26   mplot("",I,"-2,2",J);
27
28   ring rr1 = 0,x,dp; 
29   ideal I(1) = 2x2-1/2x3 +1, x-1;
30   ideal I(2) = x3-x ,x;
31   mplot("",I(1),I(2),"-2,4");
32   I(1) = x3,-1/10x3+x2,x2;
33   I(2) = x2,-x2+2,-2x2-x+1;
34   mplot("",I(1),I(2));
35   
36   ring rr = 0,(x,y),ds;
37   ideal I(1) = y,-x2;
38   ideal I(2) = x2,-y2 +4;
39   ideal I(3) = x4+2x2y2 + y4, x2-y2; 
40   poly f = (x-y)*(x2+y);
41   mplot("",f);
42   ideal J = jacob(f);
43   J;
44   mplot("",J[1],J[2]); 
45   mplot("",J[1],J[2],"-10,10","-10,10"); 
46   mplot("",I(1),I(2),"-2.5,2.5");
47   mplot("",I(3),"-2,2");
48   ideal J(1) = 3xy4 + 2xy2, x5y3 + x + y6,10x2;
49   ideal J(2) = xy,y,x2; "";
50   mplot("",J(1),"-2,1","1,2");
51   mplot("",J(2),"-1.5,1.5","-2,2");
52 $
53
Note: See TracBrowser for help on using the repository browser.