Ask Your Question
1

Number field arithmetic in Pari/gp

asked 2016-02-08 00:04:39 +0200

Dianbin Bao gravatar image

updated 2016-02-08 15:02:19 +0200

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-08 15:04:16 +0200

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]]
edit flag offensive delete link more

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: 2016-02-08 00:04:39 +0200

Seen: 366 times

Last updated: Feb 08 '16