Hi,

On Nov 22, 8:10 pm, Martin Albrecht <[EMAIL PROTECTED]>
wrote:
> if you want to give it a try have a look at
>
>    sage/rings/polynomial/polynomial_singular_interface.py

Cool: I modified this python script, ran some tests and now the
singular interface is well used for fraction field coefficients :D.

I copied the diff between the old (sage 3.1.4) and the new script at
the end of the message. If you prefer another way to get the patch,
feel free to tell me.

Cheers!

Guillaume


229c229,233
<
---
>
>       elif sage.rings.fraction_field.is_FractionField(self.base_ring()) and 
> (self.base_ring().base_ring() is ZZ or 
> self.base_ring().base_ring().is_prime_field()):
>             gens = str(self.base_ring().gens())
>             self.__singular = singular.ring( 
> "(%s,%s)"%(self.base_ring().characteristic(),gens), _vars, order=order, 
> check=False)
>
265a270
>            or ( sage.rings.fraction_field.is_FractionField(base_ring) and ( 
> base_ring.base_ring().is_prime_field() or base_ring.base_ring() is ZZ ) )

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to