First time here? Check out the FAQ!

Ask Your Question
1

Number field arithmetic in Pari/gp

asked 9 years ago

Dianbin Bao gravatar image

updated 9 years ago

vdelecroix gravatar image

Hi all,

I would like to do number field arithmetic in Pari. To be more precise, I would like let Pari do the following job as Sage does,

K.<a> = NumberField(f(x))
L.<b> = NumberField(g(x))

where f(x), g(x) are irreducible polynomials over the rational. I would like to do arithmetic with a,b. This is easily done in Sage. How can I do this by Pari?

Thanks

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 9 years ago

vdelecroix gravatar image

You can convert the given number field into pari number field with

sage: K.<a> = NumberField(x^2 - 2)
sage: K.pari_nf()
[y^2 - 2, [2, 0], 8, 1,
[[1, -1.41421356237310; 1, 1.41421356237310],
 [1, -1.41421356237310; 1, 1.41421356237310],
 [1, -1; 1, 1], [2, 0; 0, 4], [4, 0; 0, 2], [2, 0; 0, 1], [2, [0, 2; 1, 0]], []],
 [-1.41421356237310, 1.41421356237310], [1, y], [1, 0; 0, 1], [1, 0, 0, 2; 0, 1, 1, 0]]
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 769 times

Last updated: Feb 08 '16