create and investigate magic squares


[Package List] [Top]

Documentation for package `magic' version 1.3-29

Help Pages

magic-package Magic squares and hypercubes; arbitrary dimensioned array manipulation
%eq% Comparison of two magic squares
%ge% Comparison of two magic squares
%gt% Comparison of two magic squares
%le% Comparison of two magic squares
%lt% Comparison of two magic squares
%ne% Comparison of two magic squares
adiag Binds arrays corner-to-corner
allsubhypercubes Subhypercubes of magic hypercubes
allsums Row, column, and two diagonal sums of arrays
apad Pad arrays
apl Replacements for APL functions take and drop
apldrop Replacements for APL functions take and drop
apltake Replacements for APL functions take and drop
arev Reverses some dimensions; a generalization of rev
arot Rotates an array about two specified dimensions
arow Generalized row and col
as.standard Standard form for magic squares
ashift Shift origin of arrays and vectors
circulant Circulant matrices of any order
cube2 A pantriagonal magic cube
diag.off Extracts broken diagonals
do.index Apply a function to array element indices
eq Comparison of two magic squares
fnsd First non-singleton dimension
force.integer Integerize array elements
Frankenstein A perfect magic cube due to Frankenstein
ge Comparison of two magic squares
gt Comparison of two magic squares
hendricks A perfect magic cube due to Hendricks
hudson Pandiagonal magic squares due to Hudson
is.2x2.correct Various tests for the magicness of a square
is.associative Various tests for the magicness of a square
is.bree.correct Various tests for the magicness of a square
is.centrosymmetric Is a square matrix square palindromic?
is.circulant Circulant matrices of any order
is.diagonally.correct magic hypercubes
is.latin Various tests for the magicness of a square
is.latinhypercube magic hypercubes
is.magic Various tests for the magicness of a square
is.magichypercube magic hypercubes
is.mostperfect Various tests for the magicness of a square
is.normal Various tests for the magicness of a square
is.ok does a vector have the sum required to be a row or column of a magic square?
is.panmagic Various tests for the magicness of a square
is.perfect magic hypercubes
is.persymmetric Is a square matrix square palindromic?
is.semimagic Various tests for the magicness of a square
is.semimagichypercube magic hypercubes
is.square.palindromic Is a square matrix square palindromic?
is.standard Standard form for magic squares
le Comparison of two magic squares
lozenge Conway's lozenge algorithm for magic squares
lt Comparison of two magic squares
magic Creates magic squares
magic.2np1 Magic squares of odd order
magic.4n Magic squares of order 4n
magic.4np2 Magic squares of order 4n+2
magic.8 Regular magic squares of order 8
magic.constant Magic constant of a magic square
magic.prime Magic squares prime order
magic.product Product of two magic squares
magiccube.2np1 Magic cubes of order 2n+1
magiccubes Magic cubes of order 3
magichypercube.4n Magic hypercubes of order 4n
magicplot Joins consecutive numbers of a magic square.
minmax are all elements of a vector identical?
ne Comparison of two magic squares
notmagic.2n An unmagic square
Ollerenshaw A most perfect square due to Ollerenshaw
panmagic.4 Panmagic squares of order 4
panmagic.8 Panmagic squares of order 8
perfectcube5 A perfect magic cube of order 5
perfectcube6 A perfect cube of order 6
process Force index arrays into range
recurse Recursively apply a permutation
shift Shift origin of arrays and vectors
strachey Strachey's algorithm for magic squares
subsums Sums of submatrices
take Replacements for APL functions take and drop
transf Frenicle's equivalent magic squares