Opened 12 years ago
Closed 9 years ago
#4780 closed defect (worksforme)
relative number field constructor -- error message when given poly of degree < 1 is bad
Reported by: | was | Owned by: | davidloeffler |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | number fields | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | Mike Hansen, David Loeffler | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
sage: K.<a> = NumberField(x^2 + 1) sage: L.<b> = NumberField(K['y'](1)) --------------------------------------------------------------------------- PariError Traceback (most recent call last) /Users/wstein/sage/build/sage-3.2.2.alpha0/<ipython console> in <module>() /Users/wstein/sage/build/sage-3.2.2.alpha0/local/lib/python2.5/site-packages/sage/rings/number_field/number_field.pyc in NumberField(polynomial, name, check, names, cache, embedding) 374 375 if isinstance(R, NumberField_generic): --> 376 S = R.extension(polynomial, name, check=check) 377 if cache: 378 _nf_cache[key] = weakref.ref(S) /Users/wstein/sage/build/sage-3.2.2.alpha0/local/lib/python2.5/site-packages/sage/rings/number_field/number_field.pyc in extension(self, poly, name, names, check, embedding) 2570 if name is None: 2571 raise TypeError, "the variable name must be specified." -> 2572 return NumberField_relative(self, poly, str(name), check=check, embedding=embedding) 2573 2574 def factor(self, n): /Users/wstein/sage/build/sage-3.2.2.alpha0/local/lib/python2.5/site-packages/sage/rings/number_field/number_field.pyc in __init__(self, base, polynomial, name, latex_name, names, check, embedding) 4567 4568 self.__pari_relative_polynomial = pari(str(polynomial_y)) -> 4569 self.__rnf = self.__base_nf.rnfinit(self.__pari_relative_polynomial) 4570 4571 self.__base_field = base /Users/wstein/sage/build/sage-3.2.2.alpha0/local/lib/python2.5/site-packages/sage/libs/pari/gen.so in sage.libs.pari.gen._pari_trap (sage/libs/pari/gen.c:38578)() PariError: not a polynomial (38) > /Users/wstein/sage/build/sage-3.2.2.alpha0/gen.pyx(8050)sage.libs.pari.gen._pari_trap (sage/libs/pari/gen.c:38578)()
Change History (7)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
- Component changed from number theory to number fields
- Owner changed from was to davidloeffler
comment:5 Changed 9 years ago by
- Status changed from needs_review to positive_review
comment:6 Changed 9 years ago by
- Milestone changed from sage-5.0 to sage-duplicate/invalid/wontfix
comment:7 Changed 9 years ago by
- Resolution set to worksforme
- Reviewers set to Mike Hansen, David Loeffler
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
This seems to be better now:
Comments?