[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [Axiom-developer] [AxiomProblems] Problem with coefficients

**From**: |
anonymous |

**Subject**: |
[Axiom-developer] [AxiomProblems] Problem with coefficients |

**Date**: |
Mon, 07 Mar 2005 13:41:47 -0600 |

Changes http://page.axiom-developer.org/zope/mathaction/AxiomProblems/diff
--
I feel there is a problem with 'coefficients' operator for
MultivariatePolynomial domain. Let's examine a simple case:
\begin{axiom}
Dg := [p3 - 3p2 + 3p1 - p0,3p2 - 6p1 + 3p0,3p1 - 3p0,p0]
\end{axiom}
Now calculate coefficients in two ways:
\begin{axiom}
map(coefficients, Dg::List MPOLY([p0,p1,p2,p3],?))
\end{axiom}
and
\begin{axiom}
map(coefficients, Dg::List MPOLY([p3,p2,p1,p0],?))
\end{axiom}
As you see the list are all reversed, but... they were not padded with zeros.
While in my opinion they should be - we have a given order of variables, and
alone 1 in the last list suggests that this is a coefficient of p3 while it
isn't. It is a coefficient of p0.
--
forwarded from http://page.axiom-developer.org/zope/mathaction/address@hidden