source: git/Tst/Short/general_s.tst @ 107aac

spielwiese
Last change on this file since 107aac was b2d5b9, checked in by Hans Schönemann <hannes@…>, 20 years ago
*hannes; updated from 2-0 git-svn-id: file:///usr/local/Singular/svn/trunk@7042 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 685 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 sort;
17example sum;
18
19ring r=0,(x,y,z),dp;
20poly f=x^30+y^30;
21def l = watchdog(1,"factorize(eval("+string(f)+"))");
22int ok = 0;
23if (typeof(l) == "string")
24{
25  if (l == "Killed")
26  {
27    ok = 1;
28  }
29}
30else
31{
32  poly pp = x16+x14y2-x10y6-x8y8-x6y10+x2y14+y16;
33  if (typeof(l) == "list")
34  {
35    if (l[1][2] == pp)   
36    {
37     ok = 1;
38    }
39  }
40}
41ok;
42watchdog(100,"factorize(eval("+string(f)+"))");
43
44   
45
46tst_status(1);$
Note: See TracBrowser for help on using the repository browser.