[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

I feel there is a problem with 'coefficients' operator for 
MultivariatePolynomial domain. Let's examine a simple case:
Dg :=  [p3 - 3p2 + 3p1 - p0,3p2 - 6p1 + 3p0,3p1 - 3p0,p0]
Now calculate coefficients in two ways:
map(coefficients, Dg::List MPOLY([p0,p1,p2,p3],?))
map(coefficients, Dg::List MPOLY([p3,p2,p1,p0],?))
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]