MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Magic Matrices


Flip:

See:
http://mathworld.wolfram.com/MagicSquare.html

http://mathworld.wolfram.com/packages/MagicSquares.m

Hans
"Flip Flippy" <flip at safebunch.com> wrote in message
news:a2onju$5v3$1 at smc.vnet.net...
> Hi All,
>
> does anyone know of code for Mathematica to produce magic matrices?
>
> For example Magic[n] would produce an nxn matrix where all of the
> row, column and diagonal sums are equal.
>
> As an example:
>
> Magic[3] would produce as output:
>
> {{8,1,6},{3,5,7},{4,9,2}}.
>
>
> Thank you for any inputs, Flip
>
>
> --
> Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
>




  • Prev by Date: Boundary layer equations
  • Next by Date: another integral problem
  • Previous by thread: Re: Magic Matrices
  • Next by thread: Difference between Get[] and Copy-Past operation