[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:44:35 -0600 |

Changes http://page.axiom-developer.org/zope/mathaction/AxiomProblems/diff
--
[[I had a typo in the previous case]]
I feel there is a problem with 'coefficients' operator for
MultivariatePolynomial domain. Let's examine a simple case:
\begin{axiom}
Dg := [p3 - 3*p2 + 3*p1 - p0,3*p2 - 6*p1 + 3*p0,3*p1 - 3*p0,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

**[Axiom-developer] [AxiomProblems] Problem with coefficients**,
*anonymous* **<=**