diff options
author | Gabriel Dos Reis <gdr@axiomatics.org> | 2015-12-30 10:59:32 -0800 |
---|---|---|
committer | Gabriel Dos Reis <gdr@axiomatics.org> | 2015-12-30 10:59:32 -0800 |
commit | 853eb071dce89161c796d81b24eddd9e073687af (patch) | |
tree | 32087791713be9e19d9d895a647904a9fe5f1634 /src/algebra/pfr.spad.pamphlet | |
parent | 93910b392982db0452864f30db17267e0f30ea41 (diff) | |
download | open-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.pamphlet | 6 |
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 |