aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/pfr.spad.pamphlet
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@axiomatics.org>2015-12-30 10:59:32 -0800
committerGabriel Dos Reis <gdr@axiomatics.org>2015-12-30 10:59:32 -0800
commit853eb071dce89161c796d81b24eddd9e073687af (patch)
tree32087791713be9e19d9d895a647904a9fe5f1634 /src/algebra/pfr.spad.pamphlet
parent93910b392982db0452864f30db17267e0f30ea41 (diff)
downloadopen-axiom-853eb071dce89161c796d81b24eddd9e073687af.tar.gz
Use CoercibleTo category instances instead of ad-hoc hard-wired 'coerce: % -> T' signatures.
Diffstat (limited to 'src/algebra/pfr.spad.pamphlet')
-rw-r--r--src/algebra/pfr.spad.pamphlet6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/algebra/pfr.spad.pamphlet b/src/algebra/pfr.spad.pamphlet
index a8de6b27..4faabd28 100644
--- a/src/algebra/pfr.spad.pamphlet
+++ b/src/algebra/pfr.spad.pamphlet
@@ -43,11 +43,7 @@ PartialFraction(R: EuclideanDomain): Cat == Capsule where
FRR ==> Factored R
SUPR ==> SparseUnivariatePolynomial R
- Cat == Join(Field, Algebra R) with
- coerce: % -> Fraction R
- ++ coerce(p) sums up the components of the partial fraction and
- ++ returns a single fraction.
-
+ Cat == Join(Field, Algebra R,CoercibleTo Fraction R) with
coerce: Fraction FRR -> %
++ coerce(f) takes a fraction with numerator and denominator in
++ factored form and creates a partial fraction. It is