diff options
Diffstat (limited to 'src/algebra/intclos.spad.pamphlet')
-rw-r--r-- | src/algebra/intclos.spad.pamphlet | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/algebra/intclos.spad.pamphlet b/src/algebra/intclos.spad.pamphlet index 4470fc41..802f079d 100644 --- a/src/algebra/intclos.spad.pamphlet +++ b/src/algebra/intclos.spad.pamphlet @@ -206,8 +206,8 @@ IntegralBasisTools(R,UP,F): Exports == Implementation where (not square? rb1) or (not square? rbinv1) or (not square? rb2) _ or (not square? rbinv2) => error "moduleSum: matrices must be square" - ((n := nrows rb1) ^= (nrows rbinv1)) or (n ^= (nrows rb2)) _ - or (n ^= (nrows rbinv2)) => + ((n := nrows rb1) ~= (nrows rbinv1)) or (n ~= (nrows rb2)) _ + or (n ~= (nrows rbinv2)) => error "moduleSum: matrices of imcompatible dimensions" (zero? rbden1) or (zero? rbden2) => error "moduleSum: denominator must be non-zero" @@ -755,8 +755,8 @@ NumberFieldIntegralBasis(UP,F): Exports == Implementation where rbinv := UpTriBddDenomInv(rb, rbden) indexChange := index quo oldIndex; oldIndex := index disc := disc quo (indexChange * indexChange) --- one? indexChange or gcd(p2,disc) ^= p2 => - (indexChange = 1) or gcd(p2,disc) ^= p2 => +-- one? indexChange or gcd(p2,disc) ~= p2 => + (indexChange = 1) or gcd(p2,disc) ~= p2 => return [rb, rbden, rbinv, disc] discriminant() == |