git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d5c76f1
)
[bugfix] remainder_in_ring: using exact division is plain wrong.
author
Alexei Sheplyakov
<varg@theor.jinr.ru>
Mon, 29 Sep 2008 05:58:35 +0000
(09:58 +0400)
committer
Alexei Sheplyakov
<varg@theor.jinr.ru>
Tue, 30 Sep 2008 20:04:24 +0000
(
00:04
+0400)
ginac/polynomial/remainder.tcc
patch
|
blob
|
history
diff --git
a/ginac/polynomial/remainder.tcc
b/ginac/polynomial/remainder.tcc
index 4db2843bfd66f083fdaf41fb35dd0eb63433db7c..60767dc07be37d33905c1db62803d2ef88375c6d 100644
(file)
--- a/
ginac/polynomial/remainder.tcc
+++ b/
ginac/polynomial/remainder.tcc
@@
-90,7
+90,7
@@
bool remainder_in_ring(T& r, const T& a, const T& b)
if (zerop(r[k]))
continue;
- const ring_t qk =
div
(r[k], b_lcoeff);
+ const ring_t qk =
truncate1
(r[k], b_lcoeff);
// Why C++ is so off-by-one prone?
for (std::size_t j = k, i = b.size(); i-- != 0; --j) {