Ticket #805 (closed defect: fixed)
[with patch] is_trivial() does not work for fractional ideals of number field
| Reported by: | dmharvey | Owned by: | robertwb |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.8.13 |
| Component: | number theory | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
sage: F.<a> = QuadraticField(-5)
sage: I = F.ideal(3)
sage: I.is_trivial()
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'> Traceback (most recent call last)
/Users/david/sage-2.8.5/<ipython console> in <module>()
/Users/david/sage-2.8.5/local/lib/python2.5/site-packages/sage/rings/ideal.py in is_trivial(self)
229 return True
230 elif self.is_principal():
--> 231 return self.gen().is_unit()
232 raise NotImplementedError
233
<type 'exceptions.AttributeError'>: 'NumberFieldIdeal' object has no attribute 'gen'
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

