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 +/- n)/2" in the third line). Justin -- They said it couldn't be done but sometimes it doesn't work out that way. - Casey Stengel -- --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---