Ticket #3293 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch, positive review] MPolynomialRing_generic.random_element returns tuple when degree=0

Reported by: burcin Owned by: burcin
Priority: major Milestone: sage-3.0.3
Component: commutative algebra Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Attached patch changes MPolynomialRing_generic.random_element so that a random element from the base ring is returned when a degree 0 polynomial is requested.

Attachments

mpolynomialring_random_element_d0_fix.patch Download (2.2 KB) - added by burcin 5 years ago.
fix for MPolynomialRing_generic.random_element

Change History

Changed 5 years ago by burcin

fix for MPolynomialRing_generic.random_element

comment:1 Changed 5 years ago by mhansen

  • Summary changed from [with patch, needs review] MPolynomialRing_generic.random_element returns tuple when degree=0 to [with patch, positive review] MPolynomialRing_generic.random_element returns tuple when degree=0

Looks good to me.

comment:2 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged in Sage 3.0.3.alpha0

Note: See TracTickets for help on using tickets.