aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/fr.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/fr.spad.pamphlet')
-rw-r--r--src/algebra/fr.spad.pamphlet8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/algebra/fr.spad.pamphlet b/src/algebra/fr.spad.pamphlet
index 4e5df0b9..39a7f429 100644
--- a/src/algebra/fr.spad.pamphlet
+++ b/src/algebra/fr.spad.pamphlet
@@ -168,8 +168,8 @@ Factored(R: IntegralDomain): Exports == Implementation where
empty?(lf := reverse factorList x) => convert(unit x)@InputForm
l := empty()$List(InputForm)
for rec in lf repeat
--- one?(rec.fctr) => l
- ((rec.fctr) = 1) => l
+ ((rec.fctr) = 1) => messagePrint("WARNING (convert$Factored):_
+ 1 should not appear as factor.")$OutputForm
iFactor : InputForm := binary( convert("::" :: Symbol)@InputForm, [convert(rec.fctr)@InputForm, (devaluate R)$Lisp :: InputForm ]$List(InputForm) )
iExpon : InputForm := convert(rec.xpnt)@InputForm
iFun : List InputForm :=
@@ -311,9 +311,7 @@ Factored(R: IntegralDomain): Exports == Implementation where
empty?(lf := reverse factorList x) => (unit x)::OutputForm
l := empty()$List(OutputForm)
for rec in lf repeat
--- one?(rec.fctr) => l
- ((rec.fctr) = 1) => l
--- one?(rec.xpnt) =>
+ ((rec.fctr) = 1) => messagePrint "WARNING (coerce$Factored): 1 should not appear as factor."
((rec.xpnt) = 1) =>
l := concat(rec.fctr :: OutputForm, l)
l := concat(rec.fctr::OutputForm ** rec.xpnt::OutputForm, l)