| 1 | initial version |
Apparently, though r is a unit in the polynomial ring, it is not necessarilly equal to 1, but it is a polynomial of degree 0, so you can assert instead r.is_unit() and replace inv = GF(inv_bar) with inv = GF(inv_bar)/GF(r) or inv = GF(inv_bar/GF.base_ring()(r)) if you do not ant to rely on division in GF to redefine it.
| 2 | No.2 Revision |
Apparently, though r is a unit in the polynomial ring, it is not necessarilly equal to 1, but it is a polynomial of degree 0, so you can assert instead r.is_unit() and replace inv = GF(inv_bar) with inv = GF(inv_bar)/GF(r) or inv = GF(inv_bar/GF.base_ring()(r)) if you do not ant want to rely on division in GF to redefine it.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.