powered by
Returns all 90 regular magic squares of order 8
magic.8(...)
Returns an array of dimensions c(8,8,90) of which each slice is an 8-by-8 magic square.
c(8,8,90)
ignored
Robin K. S. Hankin
https://www.grogono.com/magic/index.php
h <- magic.8() h[,,1] stopifnot(apply(h,3,is.magic))
Run the code above in your browser using DataLab