source: git/Tst/Manual/number_operations.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 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: 295 bytes
Line 
1LIB "tst.lib"; tst_init();
2  ring r=0,x,dp;
3  number n = 1/2 +1/3;
4  n;
5  n/2;
6  1/2/3;
7  1/2 * 1/3;
8  n = 2;
9  n^-2;
10  // the following oddities appear here
11  2/(2+3);
12  number(2)/(2+3);
13  2^-2; // for int's exponent must be non-negative
14  number(2)^-2;
15  3/4>=2/5;
16  2/6==1/3;
17tst_status(1);$
Note: See TracBrowser for help on using the repository browser.