#13284: Some conversion between BooleanPolynomialRing and QQ[.....] are missing
----------------------------------------------------------------+-----------
       Reporter:  Bouillaguet                                   |         
Owner:  malb               
           Type:  defect                                        |        
Status:  needs_review       
       Priority:  minor                                         |     
Milestone:  sage-5.3           
      Component:  commutative algebra                           |    
Resolution:                     
       Keywords:  conversion                                    |   Work 
issues:                     
Report Upstream:  None of the above - read trac for reasoning.  |     
Reviewers:  Charles Bouillaguet
        Authors:  Alexander Dreyer                              |     Merged 
in:                     
   Dependencies:                                                |      
Stopgaps:                     
----------------------------------------------------------------+-----------
Description changed by Bouillaguet:

Old description:

> For some reason, it is impossible to directly build the (standard
> benchmark) cyclic ideals over !BooleanPolynomialRing
> {{{
> sage: from sage.rings.ideal import Cyclic
> sage: R = BooleanPolynomialRing(10, 'x')
> sage: I = Cyclic(R)
> ***BOOOM***
> ....
> TypeError: cannot convert <type
> 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'>
> to BooleanPolynomial
> }}}
>
> Note that there is a possible workaround:
> {{{
> sage: R = BooleanPolynomialRing(10, 'x')
> sage: R2 = PolynomialRing(GF(2), 10, 'x')
> sage: I = ideal([ R(f) for f in Cyclic(R2).gens()])
> }}}
>
> Note that from a mathematical point of view, this is not a very
> interesting example since this ideal is rather trivial in the boolean
> polynomial ring... yet something is wrong...
>
> '''Apply''' [attachment:13284_boolean_conversion.patch]

New description:

 For some reason, it is impossible to directly build the (standard
 benchmark) cyclic ideals over !BooleanPolynomialRing
 {{{
 sage: from sage.rings.ideal import Cyclic
 sage: R = BooleanPolynomialRing(10, 'x')
 sage: I = Cyclic(R)
 ***BOOOM***
 ....
 TypeError: cannot convert <type
 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'>
 to BooleanPolynomial
 }}}

 Note that there is a possible workaround:
 {{{
 sage: R = BooleanPolynomialRing(10, 'x')
 sage: R2 = PolynomialRing(GF(2), 10, 'x')
 sage: I = ideal([ R(f) for f in Cyclic(R2).gens()])
 }}}

 Note that from a mathematical point of view, this is not a very
 interesting example since this ideal is rather trivial in the boolean
 polynomial ring... yet something is wrong...

 '''Apply''' [attachment:13284_boolean_conversion_rebased-5.3rc1.patch]

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13284#comment:19>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to