Magic constant: Difference between revisions

m
Line 549:
Implementation:<lang J>mgc=: 0 0.5 0 0.5&p.</lang>
 
In other words, the magic constant for a magic square of order <tt>x</tt> is the result of the polynomial <code>(0.5*x)+(0.5*x^3)</code>
 
Task examples:<lang J> mgc 3+i.20
6,951

edits