Here are some notes I took when I tried to allow expressions ove finite fields. when making a:EXPR PF 5 := 2 a < 3$EXPR PF 5 gives The reason for this is that in
if R has OrderedSet then
p:% < q:% ==
(dp:= degree p) < (dq := degree q) => (leadingCoefficient q) > 0
dq < dp => (leadingCoefficient p) < 0
-- leadingCoefficient(p - q) < 0
-- the last test works only if < is compatible with -
-- the following works, but is slower, of course
leadingCoefficient(p) < leadingCoefficient(q)
Furthermore, saying: a:EXPR PF 3 := 2 eval(a^x,x=5) gives Here we have two problems at once:
|