Martin Larsen on Sun, 13 Nov 2005 00:17:54 +0100


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

Little problems


First this:
acos(cos(I))
 *** acos: bug in GP (Segmentation Fault), please report

Then this:

a=matid(8);

Now I will try to generate a matrix recursively.
Only s[1,] is importent at start. It's repeated 3 times make the error clear. 3. time is correct. If I do the same thing with 2 for-loops the correct result is there 1. time.
matrix(6,6,i,j,a[i+1,j+1]=a[i,j]+3*a[i,j+1]+2*a[i,j+2])

[1 0 0 0 0 0]

[3 1 0 0 0 0]

[11 6 1 0 0 0]

[33 31 9 1 0 0]

[99 126 60 12 1 0]

[297 477 306 98 15 1]

matrix(6,6,i,j,a[i+1,j+1]=a[i,j]+3*a[i,j+1]+2*a[i,j+2])

[1 0 0 0 0 0]

[3 1 0 0 0 0]

[11 6 1 0 0 0]

[45 31 9 1 0 0]

[197 156 60 12 1 0]

[843 785 360 98 15 1]

matrix(6,6,i,j,a[i+1,j+1]=a[i,j]+3*a[i,j+1]+2*a[i,j+2])

[1 0 0 0 0 0]

[3 1 0 0 0 0]

[11 6 1 0 0 0]

[45 31 9 1 0 0]

[197 156 60 12 1 0]

[903 785 360 98 15 1]

I suppose it is a bug in Pari (?) Another thing: if I do this (it's only working with the letter 'i') 5^i , then my inputline look like this
:
(could I have this explained).

Regards
Martin