axiom p := -x*y^2+x*y+x^3-x^2
Type: Polynomial(Integer)
axiom )se ou algebra on
Type: Factored(Polynomial(Integer))
axiom D(p,
Type: Polynomial(Integer)
Note that the factorization is correct. It's the D(.,x) that misses the sign. Forgot to categorize... --unknown, Mon, 20 Jun 2005 10:18:00 -0500 reply Category: Axiom Compiler => Axiom Mathematics
Severity: normal => serious
Severity: serious => critical
Status: open => fix proposed
The mistake is in differentiate$FR which currently reads:
differentiate(u:%, deriv: R -> R) == ans := deriv(unit u) * ((u exquo (fr := unit(u)::%))::%) ans + fr * (_+/[fact.xpnt * deriv(fact.fctr) * ((u exquo nilFactor(fact.fctr, 1))::%) for fact in factorList u]) It intends to use the formula where Therefore, the fix is to leave away the 'fr': differentiate(u:%, deriv: R -> R) == ans := deriv(unit u) * ((u exquo unit(u)::%)::%) ans + (_+/[fact.xpnt * deriv(fact.fctr) * ((u exquo nilFactor(fact.fctr, 1))::%) for fact in factorList u]) Martin Status: fix proposed => closed Category: Axiom Mathematics => Axiom Library unfortunately, TeX output misses a parenthesis. See Issue #95 |