Gareth Ma on Thu, 21 Dec 2023 08:02:48 +0100


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

Re: Precision too low in bnfisprincipal


Sorry, I accidentally hit sent. Here is the code and output again:

? \p 20000     
? bnf = bnfinit(x^2 + 199, flag=1);
? bnfisprincipal(bnf, bnf.gen[1] ^ 9)
  *** bnfisprincipal: Warning: precision too low for generators, not given.
%10 = [[1]~, []~]

I can reproduce this on the browser version too. I am not sure what is happening or how to fix it. Should I raise the precision even higher? Is this intended?

Best regards,

Gareth

On 21/12/2023 06:58, Gareth Ma wrote:
Hi all. I am trying to use `bnfisprincipal`, but it is somehow failing even for very small inputs. Here is an example:

default(realprecision, 2000);

bnf = bnfinit(x^2 + 199, flag=1)bnfisprincipal(bnf, bnf.gen[1] ^ 9)
  *** bnfisprincipal: Warning: precision too low for generators, not given.
%7 = [[1]~, []~]