spielwiese
Last change
on this file since 0a3fa3 was
0a3fa3,
checked in by Oleksandr Motsak <motsak@…>, 11 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 | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | |
---|
3 | ring R = (0),(x,y,z),(ds(3),C); |
---|
4 | poly p = -7/5; |
---|
5 | |
---|
6 | ring @R = (1000000007),(x,y,z),(ds(3),C); |
---|
7 | |
---|
8 | (-7/5) == 200000000; |
---|
9 | |
---|
10 | number(400000003) * number(1000000000) == number(200000000); |
---|
11 | |
---|
12 | poly p = imap(R, p); |
---|
13 | |
---|
14 | p; // WRONG under 32 bit :( |
---|
15 | p == 200000000; |
---|
16 | p*5 + 7; // must be 0! |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.