master > master: octave Befehl ist mod(·,·) nicht %. —> korrigiert.

This commit is contained in:
RD 2021-02-09 22:36:15 +01:00
parent cac760f8f5
commit 65245de1ba
2 changed files with 4 additions and 7 deletions

Binary file not shown.

View File

@ -1574,13 +1574,10 @@ gelten.
Wiederum wird empfohlen, zu kontrollieren, Wiederum wird empfohlen, zu kontrollieren,
dass $A\mathbf{x}=\zerovector$ für alle Basiselemente gilt. dass $A\mathbf{x}=\zerovector$ für alle Basiselemente gilt.
Beachte hier, dass wir modulo $7$ berechnen sollen.\footnote{ Beachte hier, dass wir modulo $7$ berechnen sollen.\footnote{
In \textbf{octave}, \textbf{python}, \textit{etc.} Falls man \textbf{octave} zum Berechnen benutzt, gibt man bspw.
benutzt man \texttt{\%} für Moduloberechnungen. {\ttfamily mod(A{\char42}[2, 1, 0, 0, 0].{\char13}, 7)}
In \textbf{octave} gibt man bspw. für Moduloberechnungen ein. Und in \textbf{python} gibt man
{\ttfamily (A$\ast$[2, 1, 0, 0, 0].\textquotesingle)\%7} {\ttfamily np.matmul(A, [2, 1, 0, 0, 0])\%7}
ein
und in \textbf{python} gibt man
{\ttfamily (np.matmul(A, [2, 1, 0, 0, 0])\%7}
ein (solange man konventionsgemäß numpy mittels \texttt{import numpy as np;} importiert). ein (solange man konventionsgemäß numpy mittels \texttt{import numpy as np;} importiert).
} }
Bei den o.\,s. Lösungen kommen Bei den o.\,s. Lösungen kommen