Ticket #9367 (closed defect: fixed)

Opened 3 years ago

Last modified 15 months ago

S_unit return type is incorrect

Reported by: syazdani Owned by: davidloeffler
Priority: minor Milestone: sage-5.0
Component: number fields Keywords: S_units
Cc: mjo Work issues:
Report Upstream: N/A Reviewers: David Loeffler
Authors: Michael Orlitzky Merged in: sage-5.0.beta9
Dependencies: Stopgaps:

Description (last modified by davidloeffler) (diff)

In some old versions of Sage, the S-unit commands returned values with the wrong parent:

sage: _.<x>=QQ[]
sage: L.<alpha>=NumberField(x^3+x+1)
sage: p=L.S_units([ L.ideal(7) ] )
sage: p[0].parent()
Rational Field

The correct output should be

Number Field in alpha with defining polynomial x^3 + x + 1

This is now fixed, so we should doctest to make sure it doesn't get broken again.

Apply sage-trac_9367.patch Download

Attachments

patch-9367.patch Download (787 bytes) - added by syazdani 3 years ago.
Fixes the return type.
sage-trac_9367.patch Download (1.0 KB) - added by mjo 17 months ago.
Add a doctest for the correct behavior.

Change History

Changed 3 years ago by syazdani

Fixes the return type.

Changed 17 months ago by mjo

Add a doctest for the correct behavior.

comment:1 Changed 17 months ago by mjo

  • Cc mjo added
  • Status changed from new to needs_review
  • Authors set to Michael Orlitzky

It looks like someone beat you to it! I get the correct answer with 4.8.alpha6, so I've added a doctest for it.

comment:2 Changed 15 months ago by davidloeffler

  • Priority changed from major to minor
  • Reviewers set to David Loeffler
  • Status changed from needs_review to positive_review
  • Description modified (diff)
  • Milestone set to sage-5.0

Apply sage-trac_9367.patch

(for patchbot).

comment:3 Changed 15 months ago by davidloeffler

  • Summary changed from S_unit return type is incorrect, to S_unit return type is incorrect

comment:4 Changed 15 months ago by jdemeyer

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-5.0.beta9
Note: See TracTickets for help on using tickets.