source: git/Tst/New/zp_imap.tst @ 64daec

spielwiese
Last change on this file since 64daec was 0a3fa3, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
bug in nlModP (longrat.cc:1294) ADD: test mapping of -7/5 from Q into F_1000000007 (wrong on 32bit due to an integer overflow in nlModP)
  • Property mode set to 100644
File size: 312 bytes
Line 
1LIB "tst.lib"; tst_init();
2
3ring R = (0),(x,y,z),(ds(3),C);
4poly p = -7/5;
5
6ring @R = (1000000007),(x,y,z),(ds(3),C);
7
8(-7/5) == 200000000;
9
10number(400000003) * number(1000000000) == number(200000000);
11
12poly p = imap(R, p);
13
14p; // WRONG under 32 bit :(
15p == 200000000;
16p*5 + 7; // must be 0!
17
18
19
20tst_status(1);$
Note: See TracBrowser for help on using the repository browser.