Le jeudi 18 décembre 2014 07:01:10 UTC+1, Anil Yadav a écrit :
>
> I forgot to post the OS. I am running it on Ubuntu 14.10 presently. 
> Previously when things were working, I was using Ubunto 12.04LTS.
> Anil
>

In the function:

    def compute_numberfield_product_of_pairs(polynomial_ring, f, 
integer_pairs, vector):

remove

        I = polynomial_ring.ideal(f)

and change

            product_polynomial.mod(I)

to:

            product_polynomial = product_polynomial.mod(f)

This should work.

The modified function is as follows:

def compute_numberfield_product_of_pairs(polynomial_ring, f, integer_pairs, 
vector):
    product_polynomial = polynomial_ring([1])
    for j in xrange(len(vector)):
        if (1 == vector[j]):
            linear_poly = polynomial_ring([integer_pairs[j][0], 
integer_pairs[j][1]])
            product_polynomial = product_polynomial * linear_poly
            product_polynomial = product_polynomial.mod(f)
    return product_polynomial

Best, slelievre

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to