magic (version 1.5-9)

magic.8: Regular magic squares of order 8

Description

Returns all 90 regular magic squares of order 8

Usage

magic.8(...)

Arguments

ignored

Value

Returns an array of dimensions c(8,8,90) of which each slice is an 8-by-8 magic square.

References

http://www.grogono.com/magic/index.php

Examples

Run this code
# NOT RUN {
h <- magic.8()
h[,,1]
is.magic(h[,,4])
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace