1\name{magic-package} 2\alias{magic-package} 3\docType{package} 4\title{ 5Magic squares and hypercubes; arbitrary dimensioned array manipulation 6} 7\description{ 8 9 A collection of efficient, vectorized algorithms for the creation and 10 investigation of magic squares and hypercubes, including a variety of 11 functions for the manipulation and analysis of arbitrarily dimensioned 12 arrays. 13 14 The package includes methods for creating normal magic squares of any 15 order greater than 2. The ultimate intention is for the package to be 16 a computerized embodiment all magic square knowledge, including direct 17 numerical verification of properties of magic squares (such as recent 18 results on the determinant of odd-ordered semimagic squares). 19} 20\author{ 21Robin K. S. Hankin 22\email{rksh1@cam.ac.uk} 23} 24\keyword{ package } 25\examples{ 26magic(5) 27 28a <- magiccube.2np1(1) 29adiag(1,a) 30apad(a,2,1) 31allsubhypercubes(a) 32arev(a) 33apltake(a,c(2,2)) 34arot(a) 35arow(a,1) 36} 37