Bill Allombert on Tue, 08 May 2012 23:34:05 +0200


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

ispolygonal


Hello PARI developpers,

I am experimenting with ispolygonal:

? ispolygonal(36,2)
  ***   at top-level: ispolygonal(36,2)
  ***                 ^-----------------
  *** ispolygonal: incorrect type in ispolygonal (t_INT).

This is confusing since 2 is a t_INT.

? [ispolygonal(36,3,&N),N]
%7 = [1,9223372036854775816]

N is wrong obviously

? [ispolygonal(33496046025275818831719453356591156886^2,3,&N),N]
%19 = [1,47370562574818466718159911997304784776]

N is wrong, it should be 47370562574818466708936539960450008968

Cheers,
Bill.