lozenge | R Documentation |
Uses John Conway's lozenge algorithm to produce magic squares of odd order.
lozenge(m)
m |
magic square returned is of order |
Robin Hankin
magic.4np2
lozenge(4) all(sapply(1:10,function(n){is.magic(lozenge(n))}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.