R: A Generalization of Yang Hui's Magic Squares

# A Generalization of Yang Hui's Magic Squares

## Documentation for package ‘YangHuiMagic’ version 1.1

- DESCRIPTION file

## Help Pages

construct_M | Construct the initial matrix M (satisfying the form of Matrix (8))
generate_A11 | Generate the 2n x 2n A11 matrix (arithmetic progression form)
generate_symmetric_L | Generate a symmetric L set satisfying the condition (first n numbers and their complements)
is_magic_square | Verify magic square properties
odd_magic_square | Construct odd order magic square (Siamese method)
transform_M | Apply row left-right flips and column up-down flips to a matrix
YangConway | Construct singly even order magic square (Yang-Hui Conway generalization)
YangRamanujan | Construct doubly even order magic square (Yang-Hui · Dürer · Ramanujan inspired)