spielwiese
Last change
on this file since 29fc843 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 | |
---|
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 sort; |
---|
17 | example sum; |
---|
18 | |
---|
19 | ring r=0,(x,y,z),dp; |
---|
20 | poly f=x^30+y^30; |
---|
21 | def l = watchdog(1,"factorize(eval("+string(f)+"))"); |
---|
22 | int ok = 0; |
---|
23 | if (typeof(l) == "string") |
---|
24 | { |
---|
25 | if (l == "Killed") |
---|
26 | { |
---|
27 | ok = 1; |
---|
28 | } |
---|
29 | } |
---|
30 | else |
---|
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 | } |
---|
41 | ok; |
---|
42 | watchdog(100,"factorize(eval("+string(f)+"))"); |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.