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 | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | LIB "general.lib"; |
---|
4 | example A_Z; |
---|
5 | example ASCII; |
---|
6 | example binomial; |
---|
7 | example deleteSublist; |
---|
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; |
---|
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 | int ok = 0; |
---|
24 | if (typeof(l) == "string") |
---|
25 | { |
---|
26 | if (l == "Killed") |
---|
27 | { |
---|
28 | ok = 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] == pp) |
---|
37 | { |
---|
38 | ok = 1; |
---|
39 | } |
---|
40 | } |
---|
41 | } |
---|
42 | ok; |
---|
43 | watchdog(100,"factorize(eval("+string(f)+"))"); |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.