1 | LIB "tst.lib"; tst_init(); |
---|
2 | |
---|
3 | proc Test() |
---|
4 | { |
---|
5 | "*******************************"; |
---|
6 | "ring: "; basering; |
---|
7 | |
---|
8 | bigint a = 99999999999999999999999999; |
---|
9 | |
---|
10 | |
---|
11 | number n = a; |
---|
12 | a, "--> number ", string(n); |
---|
13 | poly p = a; |
---|
14 | a, "--> poly ", string(p); |
---|
15 | vector v = a; |
---|
16 | a, "--> vector ", string(v); |
---|
17 | |
---|
18 | ideal I = a; |
---|
19 | a, "--> ideal ", string(I); |
---|
20 | |
---|
21 | module M = a; |
---|
22 | a, "--> module ", string(M); |
---|
23 | |
---|
24 | |
---|
25 | // int i = a;a, "--> int ", string(i); // not supported! |
---|
26 | |
---|
27 | ""; |
---|
28 | |
---|
29 | } |
---|
30 | |
---|
31 | ring R = (0),t,dp;Test();kill R; |
---|
32 | |
---|
33 | ring R = (2),t,dp;Test();kill R; |
---|
34 | ring R = (4,q),t,dp;Test();kill R; |
---|
35 | |
---|
36 | |
---|
37 | ring R = (0,q),t,dp;Test();kill R; |
---|
38 | |
---|
39 | |
---|
40 | ring R = (0,q),t,dp;minpoly=q2+1;Test();kill R; //???? |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | ring R = (real),t,dp;Test();kill R; |
---|
47 | ring R = (real,30,30),t,dp;Test();kill R; |
---|
48 | ring R = (complex),t,dp;Test();kill R; |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | // ring R = (integer),t,dp;Test();kill R; // BUG!!! |
---|
58 | // ring R = (integer,4),t,dp;Test();kill R; // ditto |
---|
59 | |
---|
60 | |
---|
61 | tst_status(1);$ |
---|