source: git/Tst/Short/general_s.tst @ de99f11

spielwiese
Last change on this file since de99f11 was de99f11, checked in by Olaf Bachmann <obachman@…>, 23 years ago
* modifications git-svn-id: file:///usr/local/Singular/svn/trunk@4906 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 706 bytes
Line 
1LIB "tst.lib";
2tst_init();
3LIB "general.lib";
4example A_Z;
5example ASCII;
6example binomial;
7example deleteSublist;
8example factorial;
9example fibonacci;
10//example kmemory;
11example killall;
12example number_e;
13example number_pi;
14example primes;
15example product;
16example ringweights;
17example sort;
18example sum;
19
20ring r=0,(x,y,z),dp;
21poly f=x^30+y^30;
22def l = watchdog(1,"factorize(eval("+string(f)+"))");
23int ok = 0;
24if (typeof(l) == "string")
25{
26  if (l == "Killed")
27  {
28    ok = 1;
29  }
30}
31else
32{
33  poly pp = x16+x14y2-x10y6-x8y8-x6y10+x2y14+y16;
34  if (typeof(l) == "list")
35  {
36    if (l[1][5] == pp)   
37    {
38     ok = 1;
39    }
40  }
41}
42ok;
43watchdog(100,"factorize(eval("+string(f)+"))");
44
45   
46
47tst_status(1);$
Note: See TracBrowser for help on using the repository browser.