diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2021-03-07 21:00:59 +0100 |
---|---|---|
committer | Andreas Müller <andreas.mueller@ost.ch> | 2021-03-07 21:00:59 +0100 |
commit | 9243858393d79e761f03b4454547310056d7fcea (patch) | |
tree | f0ace9a8aff19ba4ba02407a4fb6ce90a517dc5b /buch/chapters/30-endlichekoerper/uebungsaufgaben/3004 | |
parent | neue Übungsaufgaben (diff) | |
download | SeminarMatrizen-9243858393d79e761f03b4454547310056d7fcea.tar.gz SeminarMatrizen-9243858393d79e761f03b4454547310056d7fcea.zip |
Gauss
Diffstat (limited to '')
-rw-r--r-- | buch/chapters/30-endlichekoerper/uebungsaufgaben/3004/matrix.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buch/chapters/30-endlichekoerper/uebungsaufgaben/3004/matrix.m b/buch/chapters/30-endlichekoerper/uebungsaufgaben/3004/matrix.m index ed85185..42e9d9f 100644 --- a/buch/chapters/30-endlichekoerper/uebungsaufgaben/3004/matrix.m +++ b/buch/chapters/30-endlichekoerper/uebungsaufgaben/3004/matrix.m @@ -6,13 +6,14 @@ n = 4 N = 20; +p = 2; d = 0; while d == 0 A = round(N * rand(n,n)); - B = mod(A, 2); + B = mod(A, p); d = det(B); - d = mod(d, 2); + d = mod(d, p); d = d * B(1,1); end A |