Statistical programming, matrix languages, and more

Making Magic Squares using FACTEX and IML

Reply
Frequent Contributor
Posts: 122

Making Magic Squares using FACTEX and IML

Here is a SAS program for constructing magic squares, that uses pairs of orthogonal Latin squares obtained from PROC FACTEX and additional constructions in IML to give a way of making a magic square of any given size.  The comments in the program attached contains further notes on the construction methods used.

This message is a response to Rick's excellent blog entry  http://blogs.sas.com/content/iml/2012/08/29/construct-a-magic-square-of-any-size/

so be sure to read that as well if you are interested in this topic.

Attachment
Post a Question
Discussion Stats
  • 0 replies
  • 291 views
  • 0 likes
  • 1 in conversation