Jon Perry on Thu, 20 Mar 2003 18:06:35 -0000


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

Bug


{
dispfact(n)=local(k,kl,v);
k=factor(n);kl=length(k[,2]);
v=vector(kl);
for (i=1,kl,v[i]=concat(concat(k[,1][i],"^"),k[,2][i]));
v
}

Using Pari2.2.5 for Windows, as complied by David Cleaver, the above code
doesn't work (it works in Pari2.1.3)

Trying dispfact(12345), where k is length 3, apparently i=3 is too much.

Jon Perry
perry@globalnet.co.uk
http://www.users.globalnet.co.uk/~perry/maths/
http://www.users.globalnet.co.uk/~perry/DIVMenu/
BrainBench MVP for HTML and JavaScript
http://www.brainbench.com