Bill Allombert on Sat, 30 Jul 2005 11:02:40 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: squares in number field

On Tue, Jul 26, 2005 at 12:19:48AM -0400, Mak Trifkovic wrote:
> What's the easiest way to test whether a number field element is a square, 
> and if so, finding the root?

You can use nfroots:

? nf=nfinit(a^4+1);
? nfroots(nf,x^2-2)
%1 = [-a^3 + a, a^3 - a]