Axiom provides functionality to evaluate operators using a given evaluation function. Unfortunately, it is broken. fricas (1) -> g := operator 'g; Type: BasicOperator?
fricas eval(g(1783),
Type: Expression(Integer)
fricas eval(g(n),
Type: Expression(Integer)
fricas eval(a*g(n),
Type: Expression(Integer)
fricas eval(a*g(1783),
Type: Expression(Integer)
I guess that the problem is in 'smprep$FS':
smprep(lop, lexp, lfunc, p) ==
..(v := mainVariable p) case "failed" => p::%
..symbolIfCan(k := v::K) case SY => p::%
..g := (op := operator k)
.....(arg := [eval(a,lop,lexp,lfunc) for a in argument k]$List(%))
..q := map(eval(#1::%, lop, lexp, lfunc),
...........univariate(p, k))$SparseUnivariatePolynomialFunctions2(MP, %)
..(n := position(name op, lop)) < minIndex lop => q g
..a:% := 0
..f := eval((lfunc.n) arg, lop, lexp, lfunc)
..e := lexp.n
..while q ^= 0 repeat
....m := degree q
....qr := divide(m, e)
....t1 := f ** (qr.quotient)::N
....t2 := g ** (qr.remainder)::N
....a := a + leadingCoefficient(q) * t1 * t2
....q := reductum q
..a
It seems that Axiom picks the wrong Martin fixed in FriCAS --kratt6, Mon, 24 Dec 2007 05:31:42 -0800 reply Status: open => fix proposed
Status: fix proposed => fixed somewhere
no patch available http://axiom.svn.sourceforge.net/viewvc/axiom/branches/wh-sandbox/src/algebra/fspace.spad.pamphlet?r1=432&r2=585 Status: fixed somewhere => fix proposed |