source: git/Tst/New/algext_numbers.tst @ f2c70a

spielwiese
Last change on this file since f2c70a was a78ff81, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: in an algebraic extension: Q2 does NOT get reduced (wrt minpoly)...
  • Property mode set to 100644
File size: 250 bytes
Line 
1LIB "tst.lib"; tst_init();
2
3ring r=(0,Q),(x,y,z),dp; basering;
4
5minpoly = Q2-Q+1; basering;
6
7minpoly;
8
9number qm2 = 1/Q2; // -Q?
10qm2;
11qm2 == (-Q);
12
13
14
15number q2 = Q2; // Q-1!
16q2;
17q2 == (Q-1); // BUG!
18
19
20q2 * qm2; // 1?
21qm2 * q2; // 1?
22
23tst_status(1);$
Note: See TracBrowser for help on using the repository browser.