|
|
|
@ -1577,10 +1577,10 @@ gelten.
|
|
|
|
|
In \textbf{octave}, \textbf{python}, \textit{etc.} |
|
|
|
|
benutzt man \texttt{\%} für Moduloberechnungen. |
|
|
|
|
In \textbf{octave} gibt man bspw. |
|
|
|
|
{\ttfamily (A \* [2, 1, 0, 0, 0].\textquotesingle) \% 7} |
|
|
|
|
{\ttfamily (A$\ast$[2, 1, 0, 0, 0].\textquotesingle)\%7} |
|
|
|
|
ein |
|
|
|
|
und in \textbf{python} gibt man |
|
|
|
|
{\ttfamily (np.matmul(A, [2, 1, 0, 0, 0]) \% 7} |
|
|
|
|
{\ttfamily (np.matmul(A, [2, 1, 0, 0, 0])\%7} |
|
|
|
|
ein (solange man konventionsgemäß numpy mittels \texttt{import numpy as np;} importiert). |
|
|
|
|
} |
|
|
|
|
Bei den o.\,s. Lösungen kommen |
|
|
|
|