Changeset fab637 in git for Tst/Short/general_s.tst


Ignore:
Timestamp:
Dec 14, 2000, 9:41:42 AM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
46440818f3ec9d6230407b2c2b1e9b8d1faab0a3
Parents:
2ae411d951d8146629d883a15679dab86b1ace0e
Message:
* watchdog example better


git-svn-id: file:///usr/local/Singular/svn/trunk@4891 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Tst/Short/general_s.tst

    r2ae411d rfab637  
    1717example sort;
    1818example sum;
    19 example watchdog;
    20 example which;
     19
     20ring r=0,(x,y,z),dp;
     21poly f=x^30+y^30;
     22def l = watchdog(1,"factorize(eval("+string(f)+"))");
     23
     24if (typeof(l) == "string")
     25{
     26  if (l == "Killed")
     27  {
     28    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] == p)   
     37    {
     38        1;
     39    }
     40  }
     41}
     42watchdog(100,"factorize(eval("+string(f)+"))");
     43
     44   
    2145
    2246tst_status(1);$
Note: See TracChangeset for help on using the changeset viewer.