I just used the following commands to construct an matrix:

q = 2
r = 2
s = 2
n = s*(r+1)
d = 3
P = matrix(ZZ, r+2, r+2, lambda u, k: Krawtchouk(r+1, q, k, u))

But sage gives me two different results at different times:

[ 1  3  3  1]
[ 1  1 -1 -1]
[ 1 -1 -1  1]
[ 1 -3  3 -1]

and

[ 1  3  3  1]
[ 1  0 -3 -1]
[ 1 -3  3  1]
[ 1 -3  3 -5]

The upper matrix is the right one. But sometimes I get the lower matrix.
Anyone knows why this happens? Thanks :)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to