aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/crfp.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/crfp.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/crfp.spad.pamphlet')
-rw-r--r--src/algebra/crfp.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/crfp.spad.pamphlet b/src/algebra/crfp.spad.pamphlet
index 9f61ed5d..7ba3af33 100644
--- a/src/algebra/crfp.spad.pamphlet
+++ b/src/algebra/crfp.spad.pamphlet
@@ -539,7 +539,7 @@ ComplexRootFindingPackage(R, UP): public == private where
num : I := approxNthRoot(globalDigits * numer r ,n)$IntegerRoots(I)
num/den
-- the following doesn't compile
- --R has coerce: % -> Fraction Integer =>
+ --R has CoercibleTo Fraction Integer =>
-- q : Fraction Integer := coerce(r)@Fraction(Integer)
-- den : I := approxNthRoot(globalDigits * denom q ,n)$IntegerRoots(I)
-- num : I := approxNthRoot(globalDigits * numer q ,n)$IntegerRoots(I)