source: git/Tst/Short/graphics.tst

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