Commit 125cc09a authored by Michael Kohlhase's avatar Michael Kohlhase

debug

parent 4024a703
\begin{mhmodnl}[creators=jusche]{magicconstant}{en}
\begin{definition}
The \defii{magic}{constant} or \defii{magic}{sum} $\magicconstant$ is the sum of every
row, column and diagonal of a \trefii[magicsquare]{magic}{square}. Every
\trefiii[normalmagicsquare]{normal}{magic}{square} of order $n$ has a unique constant
$\normalmagicconstant{n}$:
The \defii{magic}{constant} or \defii[name=magic-constant]{magic}{sum} $\magicconstant$ is
the sum of every row, column and diagonal of a \trefii[magicsquare]{magic}{square}.
Every \trefiii[normalmagicsquare]{normal}{magic}{square} of order $n$ has a unique
constant $\normalmagicconstant{n}$:
\[\normalmagicconstant{n} = \frac{n(\power{n}2+1)}{2}\]
\end{definition}
\end{mhmodnl}
......
\begin{modsig}[creators=jusche]{magicconstant}
\gimport{normalmagicsquare}
\symdef[name=normalmagicconstant]{normalmagicconstantOp}{M}
\symdef{normalmagicconstant}[1]{\prefix\normalmagicconstantOp{#1}}
\symdef[noverb,name=normalmagicconstant]{normalmagicconstantOp}{M}
\symdef{noverb,normalmagicconstant}[1]{\prefix\normalmagicconstantOp{#1}}
\symtest{normalmagicconstant}{\normalmagicconstant{4}=34}
\symdef[name=magic-constant]{magicconstant}{M}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment