aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/expr.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-05-25 05:29:46 +0000
committerdos-reis <gdr@axiomatics.org>2009-05-25 05:29:46 +0000
commit785f36fcc98e8cbbd206342a73b274bc361508d6 (patch)
tree2cb0c951f79e8fd7a3c77832b9c9098c608d8eb5 /src/algebra/expr.spad.pamphlet
parent67eb28e8fcfd246d7f149c00bdd3089e2f606676 (diff)
downloadopen-axiom-785f36fcc98e8cbbd206342a73b274bc361508d6.tar.gz
Partial fix for AW/193 and AW/334.
* algebra/algfunc.spad.pamphlet: Remove OrderedSet requirements. * algebra/combfunc.spad.pamphlet: Likewise. * algebra/defintef.spad.pamphlet: Likewise. * algebra/defintrf.spad.pamphlet: Likewise. * algebra/degred.spad.pamphlet: Likewise. * algebra/efstruc.spad.pamphlet: Likewise. * algebra/elemntry.spad.pamphlet: Likewise. * algebra/expexpan.spad.pamphlet: Likewise. * algebra/expr.spad.pamphlet: Likewise. * algebra/expr2ups.spad.pamphlet: Likewise. * algebra/exprode.spad.pamphlet: Likewise. * algebra/fortran.spad.pamphlet: Likewise. * algebra/fr.spad.pamphlet: Likewise. * algebra/fraction.spad.pamphlet: Likewise. * algebra/fs2expxp.spad.pamphlet: Likewise. * algebra/fspace.spad.pamphlet: Likewise. * algebra/funcpkgs.spad.pamphlet: Likewise. * algebra/gaussian.spad.pamphlet: Likewise. * algebra/genups.spad.pamphlet: Likewise. * algebra/intalg.spad.pamphlet: Likewise. * algebra/intef.spad.pamphlet: Likewise. * algebra/integrat.spad.pamphlet: Likewise. * algebra/intpm.spad.pamphlet: Likewise. * algebra/irexpand.spad.pamphlet: Likewise. * algebra/kl.spad.pamphlet: Likewise. * algebra/laplace.spad.pamphlet: Likewise. * algebra/limitps.spad.pamphlet: Likewise. * algebra/liouv.spad.pamphlet: Likewise. * algebra/manip.spad.pamphlet: Likewise. * algebra/nlode.spad.pamphlet: Likewise. * algebra/odeef.spad.pamphlet: Likewise. * algebra/oderf.spad.pamphlet: Likewise. * algebra/openmath.spad.pamphlet: Likewise. * algebra/patmatch1.spad.pamphlet: Likewise. * algebra/patmatch2.spad.pamphlet: Likewise. * algebra/pfo.spad.pamphlet: Likewise. * algebra/polycat.spad.pamphlet: Likewise. * algebra/primelt.spad.pamphlet: Likewise. * algebra/rdeef.spad.pamphlet: Likewise. * algebra/rdesys.spad.pamphlet: Likewise. * algebra/rule.spad.pamphlet: Likewise. * algebra/solverad.spad.pamphlet: Likewise. * algebra/sum.spad.pamphlet: Likewise. * algebra/transsolve.spad.pamphlet: Likewise. * testsuite/interpreter/aw-193.input: New. * testsuite/interpreter/aw-334.input: Likewise.
Diffstat (limited to 'src/algebra/expr.spad.pamphlet')
-rw-r--r--src/algebra/expr.spad.pamphlet21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/algebra/expr.spad.pamphlet b/src/algebra/expr.spad.pamphlet
index cc82f5ca..85dc5a24 100644
--- a/src/algebra/expr.spad.pamphlet
+++ b/src/algebra/expr.spad.pamphlet
@@ -18,7 +18,7 @@
++ Date Last Updated: October 1993 (P.Gianni), February 1995 (MB)
++ Description: Expressions involving symbolic functions.
++ Keywords: operator, kernel, function.
-Expression(R:OrderedSet): Exports == Implementation where
+Expression(R: SetCategory): Exports == Implementation where
Q ==> Fraction Integer
K ==> Kernel %
MP ==> SparseMultivariatePolynomial(R, K)
@@ -66,7 +66,8 @@ Expression(R:OrderedSet): Exports == Implementation where
belong? op == true
retNotUnit x ==
- (u := constantIfCan(k := retract(x)@K)) case R => u::R
+ R has OrderedSet and
+ (u := constantIfCan(k := retract(x)@K)) case R => u::R
error "Not retractable"
retNotUnitIfCan x ==
@@ -127,7 +128,7 @@ Expression(R:OrderedSet): Exports == Implementation where
n = 1 => x
simplifyPower(numerator x,n pretend Integer) / simplifyPower(denominator x,n pretend Integer)
- x:% < y:% == x <$Rep y
+ before?(x:%,y:%) == before?(x,y)$Rep
x:% = y:% == x =$Rep y
numer x == numer(x)$Rep
denom x == denom(x)$Rep
@@ -375,7 +376,7 @@ Expression(R:OrderedSet): Exports == Implementation where
x:% * y:% == x *$Rep y
x:% + y:% == x +$Rep y
x:% = y:% == x =$Rep y
- x:% < y:% == x <$Rep y
+ before?(x:%,y:%) == before?(x,y)$Rep
numer x == x@Rep
coerce(p:MP):% == p
@@ -437,7 +438,7 @@ Expression(R:OrderedSet): Exports == Implementation where
0 == 0$Rep
x:% + y:% == x +$Rep y
x:% = y:% == x =$Rep y
- x:% < y:% == x <$Rep y
+ before?(x:%,y:%) == before?(x,y)$Rep
coerce(k:K):% == coerce(k)$Rep
kernels x == [f.gen for f in terms x]
coerce(x:R):% == (zero? x => 0; constantKernel(x)::%)
@@ -493,7 +494,7 @@ Expression(R:OrderedSet): Exports == Implementation where
Rep := K
- x:% < y:% == x <$Rep y
+ before?(x:%,y:%) == before?(x,y)$Rep
x:% = y:% == x =$Rep y
coerce(k:K):% == k
kernels x == [x pretend K]
@@ -562,7 +563,7 @@ PolynomialAN2Expression():Target == Implementation where
++ Description: Lifting of maps to Expressions.
++ Date Created: 16 Jan 1989
++ Date Last Updated: 22 Jan 1990
-ExpressionFunctions2(R:OrderedSet, S:OrderedSet):
+ExpressionFunctions2(R: SetCategory, S: SetCategory):
Exports == Implementation where
K ==> Kernel R
F2 ==> FunctionSpaceFunctions2(R, Expression R, S, Expression S)
@@ -589,7 +590,7 @@ ExpressionFunctions2(R:OrderedSet, S:OrderedSet):
++ Date Last Updated: 23 May 1990
++ Keywords: pattern, matching.
FunctionSpaceAttachPredicates(R, F, D): Exports == Implementation where
- R: OrderedSet
+ R: SetCategory
F: FunctionSpace R
D: Type
@@ -639,7 +640,7 @@ FunctionSpaceAttachPredicates(R, F, D): Exports == Implementation where
++ Date Last Updated: 23 May 1990
++ Keywords: pattern, matching.
FunctionSpaceAssertions(R, F): Exports == Implementation where
- R: OrderedSet
+ R: SetCategory
F: FunctionSpace R
K ==> Kernel F
@@ -837,7 +838,7 @@ Pi(): Exports == Implementation where
++ integer coefficients to any Expression type.
++ Date Created: 21 Feb 1990
++ Date Last Updated: 21 Feb 1990
-PiCoercions(R:Join(OrderedSet, IntegralDomain)): with
+PiCoercions(R: IntegralDomain): with
coerce: Pi -> Expression R
++ coerce(f) returns f as an Expression(R).
== add