Converting polynomials to pari

16 views
Skip to first unread message

Benjamin Matschke

unread,
May 8, 2020, 1:14:19 PM5/8/20
to sage-support
What is the right (and most stable) way to convert polynomials over number fields to a corresponding pari object?
I want to work with polynomials over number fields in sage using methods from pari (for example pari's rnfpolredabs).

The following code raises a PariError (incorrect priority in gtopoly: variable y <= t), and it persists if I rename the sage variables.

R.<x> = QQ[]
K = NumberField(x^2+2, "k")
pK
= pari(K)
print("pK:",pK) #uses variable "y"

S
.<t> = K[]
g
= t^3 + 2
pg
= pari(g)
print("pg:",pg)

I used Sage 9.0 and 8.8.

Thanks,
Benjamin
Reply all
Reply to author
Forward
0 new messages