spielwiese
Release-4-3-2p2
Last change
on this file since 0d6b7fc was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
518 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | // the following expressions are in any ring int expressions |
---|
3 | 2 / 3; |
---|
4 | 4/ 8; |
---|
5 | 2 /2; // the notation of / for div might change in the future |
---|
6 | ring r0=0,x,dp; |
---|
7 | 2/3, 4/8, 2/2 ; // are numbers |
---|
8 | |
---|
9 | poly f = 2x2 +1; |
---|
10 | leadcoef(f); |
---|
11 | typeof(_); |
---|
12 | ring rr =real,x,dp; |
---|
13 | 1.7e-2; 1.7e+2; // are valid (but 1.7e2 not), if the field is `real` |
---|
14 | ring rp = (31,t),x,dp; |
---|
15 | 2/3, 4/8, 2/2 ; // are numbers |
---|
16 | poly g = (3t2 +1)*x2 +1; |
---|
17 | leadcoef(g); |
---|
18 | typeof(_); |
---|
19 | par(1); |
---|
20 | typeof(_); |
---|
21 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.