Package: magicrect 1.0.0
magicrect: Construct Magic Rectangles and Nearly Magic Rectangles
Constructs a magic rectangle or a nearly magic rectangle of order p x q for every order for which one exists, together with existence classification and verification utilities. A magic rectangle arranges the integers 1 to p*q so that all row sums are equal and all column sums are equal; it exists exactly when p and q have the same parity, excluding 2 x 2 and degenerate single-row/column cases (Hagedorn, 1999, <doi:10.1016/S0012-365X(99)00041-2>). When p and q have opposite parity a nearly magic rectangle exists instead, with constant sums along one direction and sums differing by at most one along the other (Chai, Singh and Stufken, 2019, Journal of Combinatorial Designs 27(6), 368-376). Implements the constructions of De Los Reyes, Das, Midha and Vellaisamy (2009) for even by even orders, Chai, Das and Midha (2013) for odd by odd orders, and Chai, Singh and Stufken (2019) for the nearly magic (even by odd) case.
Authors:
magicrect_1.0.0.tar.gz
magicrect_1.0.0.tar.gz(r-4.7-any)magicrect_1.0.0.tar.gz(r-4.6-any)
magicrect_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
magicrect/json (API)
| # Install 'magicrect' in R: |
| install.packages('magicrect', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/arijitray2/magic-rectangles/issues
Last updated from:77272ab9db. Checks:4 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 108 | ||
| source / vignettes | OK | 155 | ||
| linux-release-x86_64 | OK | 122 | ||
| wasm-release | OK | 84 |
Exports:magic_rectanglerectangle_typeverify_rectangle
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Construct a magic rectangle or nearly magic rectangle of order p x q | magic_rectangle print.magicrect |
| Classify which rectangle exists for a given order | rectangle_type |
| Verify the defining properties of a (nearly) magic rectangle | verify_rectangle |
