diff options
Diffstat (limited to 'src/algebra/rf.spad.pamphlet')
-rw-r--r-- | src/algebra/rf.spad.pamphlet | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/rf.spad.pamphlet b/src/algebra/rf.spad.pamphlet index 26184004..ccb642c3 100644 --- a/src/algebra/rf.spad.pamphlet +++ b/src/algebra/rf.spad.pamphlet @@ -91,8 +91,8 @@ PolynomialCategoryQuotientFunctions(E, V, R, P, F): mymerge(variables numer f, variables denom f) isPower f == - (den := denom f) ~= 1 => - numer f ~= 1 => "failed" + not one?(den := denom f) => + not one? numer f => "failed" (ur := isExpt den) case "failed" => [den::F, -1] r := ur::Record(var:V, exponent:NonNegativeInteger) [r.var::P::F, - (r.exponent::Integer)] @@ -123,7 +123,7 @@ PolynomialCategoryQuotientFunctions(E, V, R, P, F): concat!(l::List(F), d) isPlus f == - denom f ~= 1 => "failed" + not one? denom f => "failed" (s := isPlus numer f) case "failed" => "failed" [x::F for x in s] |