aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/fraction.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-09 23:54:10 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-09 23:54:10 +0000
commit8c47810df65c610513d4be825bd6ee9a56f97f9f (patch)
tree7117bf9c5177324de1e4a012b635ed667dec817f /src/algebra/fraction.spad.pamphlet
parentccd024277fb8eab4a8b22ed160f4da1609dd94e9 (diff)
downloadopen-axiom-8c47810df65c610513d4be825bd6ee9a56f97f9f.tar.gz
* algebra/catdef.spad.pamphlet (StepThrough) [nextItem]: Now
return Maybe %. * algebra/ffcat.spad.pamphlet: Propagate change. * algebra/fmod.spad.pamphlet: Likewise. * algebra/fraction.spad.pamphlet: Likewise. * algebra/integer.spad.pamphlet: Likewise. * algebra/pfbr.spad.pamphlet: Likewise. * algebra/polycat.spad.pamphlet: Likewise. * algebra/si.spad.pamphlet: Likewise.
Diffstat (limited to 'src/algebra/fraction.spad.pamphlet')
-rw-r--r--src/algebra/fraction.spad.pamphlet6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/fraction.spad.pamphlet b/src/algebra/fraction.spad.pamphlet
index a1ef630b..1e691362 100644
--- a/src/algebra/fraction.spad.pamphlet
+++ b/src/algebra/fraction.spad.pamphlet
@@ -173,10 +173,10 @@ QuotientFieldCategory(S: IntegralDomain): Category ==
init() == init()$S / 1$S
nextItem(n) ==
- m:= nextItem(numer(n))
- m case "failed" =>
+ m:= nextItem numer n
+ m case nothing =>
error "We seem to have a Fraction of a finite object"
- m / 1
+ just(m / 1)
map(fn, x) == (fn numer x) / (fn denom x)
reducedSystem(m:Matrix %):Matrix S == clearDenominator m