spielwiese
Last change
on this file since fab637 was
fab637,
checked in by Olaf Bachmann <obachman@…>, 23 years ago
|
* watchdog example better
git-svn-id: file:///usr/local/Singular/svn/trunk@4891 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
674 bytes
|
Rev | Line | |
---|
[8858921] | 1 | LIB "tst.lib"; |
---|
| 2 | tst_init(); |
---|
| 3 | LIB "general.lib"; |
---|
| 4 | example A_Z; |
---|
| 5 | example ASCII; |
---|
| 6 | example binomial; |
---|
[37ad5ff] | 7 | example deleteSublist; |
---|
[8858921] | 8 | example factorial; |
---|
| 9 | example fibonacci; |
---|
| 10 | //example kmemory; |
---|
| 11 | example killall; |
---|
| 12 | example number_e; |
---|
| 13 | example number_pi; |
---|
| 14 | example primes; |
---|
| 15 | example product; |
---|
| 16 | example ringweights; |
---|
| 17 | example sort; |
---|
| 18 | example sum; |
---|
[fab637] | 19 | |
---|
| 20 | ring r=0,(x,y,z),dp; |
---|
| 21 | poly f=x^30+y^30; |
---|
| 22 | def l = watchdog(1,"factorize(eval("+string(f)+"))"); |
---|
| 23 | |
---|
| 24 | if (typeof(l) == "string") |
---|
| 25 | { |
---|
| 26 | if (l == "Killed") |
---|
| 27 | { |
---|
| 28 | 1; |
---|
| 29 | } |
---|
| 30 | } |
---|
| 31 | else |
---|
| 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 | } |
---|
| 42 | watchdog(100,"factorize(eval("+string(f)+"))"); |
---|
| 43 | |
---|
| 44 | |
---|
[8858921] | 45 | |
---|
| 46 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.