magic.8: Regular magic squares of order 8

Description Usage Arguments Value Author(s) References Examples

Description

Returns all 90 regular magic squares of order 8

Usage

1

Arguments

...

ignored

Value

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

Author(s)

Robin K. S. Hankin

References

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

Examples

1
2
3
4
h <- magic.8()
h[,,1]

stopifnot(apply(h,3,is.magic))

magic documentation built on Feb. 9, 2022, 1:07 a.m.