Magic constant: Difference between revisions
m
→{{header|J}}
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 547:
=={{header|J}}==
Implementation:<lang J>mgc=: 0
In other words, the magic constant for <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
|