On Feb 4, 2007, at 08:56 , Timothy Clemans wrote:
Alec is your code suppose to be able to generate any nth normal
magic square?
sage: print magicsquare_normal(4)
[ 9 15 1 7]
[14 4 6 12]
[ 3 5 11 13]
[ 8 10 16 2]
I think his code just deals with odd 'n' (witness the terms (1
Oh ok then in the code you should write n = 2*n-1 which means if n is
2 then 3 will be used.
That's not the right way - the argument of the function should be the size
of the square. If you want to avoid the case of even sizes, that could be
done by testing the parity - something like
if
From: Timothy Clemans [EMAIL PROTECTED]
My function clearly stated magicsquare_normal_odd by being called that
so its fine and I would just call yours that too. In the docstring I
would say computes nth odd normal magic square. This function is for
a special case of normal magic squares.
Just for the heck of it, why is openGL not supported in SAGE? It is
cross-platform and is popular. There are several books on it. Heck the
Wikipedia on openGL is good.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To
On Sun, 04 Feb 2007 16:20:07 -0800, Timothy Clemans [EMAIL PROTECTED] wrote:
Just for the heck of it, why is openGL not supported in SAGE? It is
cross-platform and is popular. There are several books on it. Heck the
Wikipedia on openGL is good.
I don't understand your question exactly.