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

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