On Oct 28, 2012, at 04:25 , Charles Bouillaguet wrote: > Hi all, > > While playing with the quotient of a polynomial ring with an ideal, I > encountered several glitches. > > *) Trying to compute the inverse of something which is not invertible. > > I know it is kind of weird to try this. However, it raises a > NotImplementedError exception, instead of something more informative such as > NonInvertible or whatever. I am willing to patch this, but could someone tell > me what is the correct exception to raise?
The analogous attempt with, e.g., Integers mod a non-prime will raise "ZeroDivisionError: Inverse does not exist.". HTH Justin -- Justin C. Walker Curmudgeon-at-large Director Institute for the Absorption of Federal Funds ---- 186,000 Miles per Second Not just a good idea: it's the law! ---- -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en.